Open acamenhas opened 2 years ago
Hello,
I didnt see any example or test for a update mutation, how can be implemented this mutation:
mutation MyMutation { update_users(where: {id: {_eq: 1}}, _set: {name: "My name"}) { affected_rows } }
Thank you
I guess you just need to nest queries like:
->setSelectionSet( [ (new Query('collection')) ->setSelectionSet( [ 'id', 'title', 'descriptionHtml', 'handle', 'sortOrder', ] ) ], );
Hello,
I didnt see any example or test for a update mutation, how can be implemented this mutation:
mutation MyMutation { update_users(where: {id: {_eq: 1}}, _set: {name: "My name"}) { affected_rows } }
Thank you