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
GraphQL Mutations are indeed supported in Craft 3.7: https://craftcms.com/docs/3.x/graphql.html#mutations
-
Thx Ben. Yes but can you save a json string/object to a field in the syntax? I didn't think you could– joomkitCommented Sep 19, 2021 at 14:36
-
You can save any string, so provided you JSON encode your object first, it should work. 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– joomkitCommented Sep 20, 2021 at 14:21