/mutations.js Secret
Created
May 23, 2021 23:49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const STAGED_UPLOADS_CREATE = gql` | |
mutation stagedUploadsCreate($input: [StagedUploadInput!]!) { | |
stagedUploadsCreate(input: $input) { | |
stagedTargets { | |
resourceUrl | |
url | |
parameters { | |
name | |
value | |
} | |
} | |
userErrors { | |
field | |
message | |
} | |
} | |
} | |
`; | |
const COLLECTION_UPDATE = gql` | |
mutation collectionUpdate($input: CollectionInput!) { | |
collectionUpdate(input: $input) { | |
collection { | |
id | |
image { | |
originalSrc | |
} | |
} | |
userErrors { | |
field | |
message | |
} | |
} | |
} | |
` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment