You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove actions in the demo don't work as expected, removed items show up after GraphQL responses.
The reason I've found is in MutateAndGetPayload of RemoveCompletedTodos and RemoveTodo mutations, they should return GlobalIDs (like "VG9kbzoy") instead of integer IDs defined in database.
id, _ := inputMap["id"].(string)
resolvedId := relay.FromGlobalID(id)
RemoveTodo(resolvedId.ID)
return map[string]interface{}{
"todoId": resolvedId.ID, // resolvedId.ID should be id.
}, nil
The text was updated successfully, but these errors were encountered:
Thanks for taking time to look into this, appreciate it very much.
I would very much be open to accept a PR on this if you want to contribute ☺️
(I've gotten my hands full at the moment, I'll work on this when I have the time to spare. In the mean time, any help would be very much appreciated! 😃)
Remove actions in the demo don't work as expected, removed items show up after GraphQL responses.
The reason I've found is in
MutateAndGetPayload
of RemoveCompletedTodos and RemoveTodo mutations, they should return GlobalIDs (like "VG9kbzoy") instead of integer IDs defined in database.The text was updated successfully, but these errors were encountered: