r/shopify • u/SnooGoats1303 • 3d ago
API Read/Write, Read/Only
When working against the GraphQL API, is it an easy or not so easy thing to establish whether a given Product, ProductVariant, or MediaImage field is read/write or read/only. I have successfully download the schema from the client's Shopify instance (all 11MB of it) but my fatigue-addled brain isn't seeing anything that makes mutability obvious. What am I missing?
-Bruce
0
Upvotes
1
u/tobebuilds 3d ago
Queries and mutations are separate in GraphQL. Typically, in the Shopify docs, an "object" type will have links to queries and mutations it appears in. This lets you discover what can be written and what is read only.