Delete data by GraphQL API
To delete 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 delete record and replace the _id
value 5cb98489d09a343e14daae95
above with the record's _id
you want to delete.
The keyword __delete
in the above script represents to delete one record on Steedos via the GraphQL API.
The graphql script above will return some data like this:
When somebody delete record via the GraphQL API on Steedos, they can delete records of the object only they have permission to delete, see About data permissions for more information.