1

Can someone confirm for me that the current status of craftql (Craft 3.7) does not allow mutations that can save JSON content to entries?

1 Answer 1

2

GraphQL Mutations are indeed supported in Craft 3.7: https://craftcms.com/docs/3.x/graphql.html#mutations

3
  • Thx Ben. Yes but can you save a json string/object to a field in the syntax? I didn't think you could
    – joomkit
    Commented Sep 19, 2021 at 14:36
  • You can save any string, so provided you JSON encode your object first, it should work.
    – Ben Croker
    Commented Sep 19, 2021 at 18:27
  • It does! Thank you. I thought JSON wasn't supported but i think the JSON field/type isnt supported in mysql or as part of the Graph schema but encoded string works
    – joomkit
    Commented Sep 20, 2021 at 14:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.