Open marktani opened 6 years ago
is it possible to query and mutate in single statement?
No, that's not possible.
My workaround is:
mutation {
deleteVerify
( id:"cizdpqfq0iwqg0144xtrbosoy" )
{ id }
user: updateUser(id: $userId) { email }
}
Looking at the schema generated by Graphcool, the output type of the deletion mutation for a node is that node type.
So isn't this supposed to be qualified as a Bug
rather than a Feature
? Doesn't that mean a mutation result is supposed to be able to include all of that Node's fields (including relational fields)?
Originally reported by @Noitidart here.
Delete doesnt return related data
On success however it gives me null for user:
Query works fine
The query for this works perfectly fine:
So I'm confused why the
mutation
delete is not giving me the email.