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:

mutation {
tasks__delete(_id:"5cb98489d09a343e14daae95")
}

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:

{
"data": {
"tasks__delete": 1
}
}

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.

Have questions about Steedos??
Contact Steedos and our technical expert will answer your questions.

Our technical experts have more than 10 years of experience in management software development, and they are always ready to help you with any questions you may have about the functionality, pricing, implementation or any other aspect of Steedos.

Steedos

Steedos is a new generation of low code platform, based on business intelligence and model driven, it can easily and easily create intelligent, mobile and personalized applications according to the needs of business departments.

Copyright © 2020 Steedos, Inc.