Skip to main content

Update Data

To perform an update for a created object, you can use the upsert function in the same format. The only difference is we need to pass on created id value to locate the object. Notice that we have passed on the same id values from hypi objects to the update information of two different authors. If the update is successful, the same id values are returned.

mutation Upsert($values: HypiUpsertInputUnion!) {
upsert(values: $values) {
id
}
}

If you don’t provide the id, a new object would be created. It may also result in the repetition of data.

More Information:

  • You are free to mix insert and update operations. The system will accept and process them correctly.

  • The order of execution is undefined. Hypi can choose to process multiple requests sent in one query in parallel.

  • There is a limit of 25 records per request.

  • There is a request timeout of 2 seconds. The entire operation must complete within this timeframe.