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:

mutation {
tasks__update(_id:"5cb98489d09a343e14daae95", data:{name:"Task Important"}) {
name
_id
}
}

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:

{
"data": {
"tasks__update": {
"name": "Task Important",
"_id": "5cb98489d09a343e14daae95"
}
}
}

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.

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.