Edit data by GraphQL API
To edit data on Steedos via the GraphQL API, you should prefix the script with mutation
instead of query
in the following format:
That represents you shoud replace the tasks
above with the object name you want to edit record, replace the _id
value 5cb98489d09a343e14daae95
above with the record's _id
you want to edit, and replace the {name:"Task Important"}
above with a new JSON data you want to save as.
The keyword __update
in the above script represents to edit one record on Steedos via the GraphQL API.
The graphql script above may return some data like this:
When somebody update data via the GraphQL API on Steedos, they can edit records of the object and field only they have permission to update, see About data permissions for more information.