-
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is GraphQL Mutation working? #449
Comments
Looks like there might've been an issue with the Block Type ID handling in 2.7.1 which was to fix another error. I can confirm the below works for a Super Table field, a Matrix field, and a Super Table + Matrix field (in that order, included for comparison).
You'll notice the above To get the fix early, change your
Then run |
Hello @engram-design , thank you for the hotfix and the hint! I've tried the latest The entry is created, in my case for a static super-table field, but it's never populated, other fields like |
Hi @engram-design , I am also having the same issue as @vuolter and @scandella mentioned. I am sending the data as you shown in your comment but it just returns me the data I currently have. I want to update the data of an exist entry without any success. mutation SaveMatch($id: ID) {
save_userMatch_match_Entry(
id: $id
matchPlayers: {blocks: [{type_12: {id: "new1", playerName: "Test", playerUid: "Test uid"}}, {type_12: {id: "new2", playerName: "Test", playerUid: "Test uid"}}]}
) {
id
matchPlayers {
... on matchPlayers_BlockType {
playerUid
playerName
}
}
}
} |
I'm unable to get a GraphQL mutation working with Super Table using Craft 3.7.30.
I think the mutation syntax is OK and the query runs fine, the entry is created but the SuperTable field is never populated.
I've made a basic test, with a Matrix field and a SuperTable field:
The Matrix field is correctly populated, but the Super Table one remains empty.
Is mutation for Super Table working for you?
The text was updated successfully, but these errors were encountered: