Mutation Operations

This reference doc is generated based on thisexample schema.

Mutations define the write operations for modifying data in a GraphQL schema.

All mutations are generated based on customer defined@table types.Customer defined mutations are not supported.

Data Connect Generated

mainTable_delete:MainTable_KeyOutput

✨ Delete a singleMainTable based onid,key orfirst and return its key (ornull if not found).

FieldTypeDescription
idUUIDThe unique ID of the object.
keyMainTable_KeyThe key used to identify the object.
firstMainTable_FirstRowFetch the first row based on the filters and ordering.

mainTable_deleteMany:Int!

✨ DeleteMainTable objects matchingwhere conditions (orall, if true). Returns the number of rows deleted.

FieldTypeDescription
whereMainTable_FilterFilter condition to specify which rows to delete.
allBooleanSet to true to delete all rows.

mainTable_insert:MainTable_KeyOutput!

✨ Insert a singleMainTable into the table and return its key. Columns not specified indata will receive defaults (e.g.null).

FieldTypeDescription
dataMainTable_Data!Data object to insert into the table.

mainTable_insertMany:[MainTable_KeyOutput!]!

✨ InsertMainTable objects into the table and return their keys. Columns not specified indata will receive defaults (e.g.null).

FieldTypeDescription
data[MainTable_Data!]!List of data objects to insert into the table.

mainTable_update:MainTable_KeyOutput

✨ Update a singleMainTable based onid,key orfirst, setting columns specified indata. Returns the key of the updatedMainTable ornull if not found.

FieldTypeDescription
idUUIDThe unique ID of the object.
keyMainTable_KeyThe key used to identify the object.
firstMainTable_FirstRowFetch the first row based on the filters and ordering.
dataMainTable_Data!Data object containing fields to be updated.

mainTable_updateMany:Int!

✨ UpdateMainTable objects matchingwhere conditions (orall, if true) according todata. Returns the number of rows updated.

FieldTypeDescription
whereMainTable_FilterFilter condition to specify which rows to update.
allBooleanSet to true to update all rows.
dataMainTable_Data!Data object containing fields to update.

mainTable_upsert:MainTable_KeyOutput!

✨ Insert or update a singleMainTable into the table, based on the primary key. Returns the key of the newly inserted or existing updatedMainTable.

FieldTypeDescription
dataMainTable_Data!Data object to insert or update if it already exists.

mainTable_upsertMany:[MainTable_KeyOutput!]!

✨ Insert or updateMainTable objects into the table, based on the primary key. Returns the key of the newly inserted or existing updatedMainTable.

FieldTypeDescription
data[MainTable_Data!]!List of data objects to insert or update if it already exists.

manyToManyJoinTable_delete:ManyToManyJoinTable_KeyOutput

✨ Delete a singleManyToManyJoinTable based onid,key orfirst and return its key (ornull if not found).

FieldTypeDescription
keyManyToManyJoinTable_KeyThe key used to identify the object.
firstManyToManyJoinTable_FirstRowFetch the first row based on the filters and ordering.

manyToManyJoinTable_deleteMany:Int!

✨ DeleteManyToManyJoinTable objects matchingwhere conditions (orall, if true). Returns the number of rows deleted.

FieldTypeDescription
whereManyToManyJoinTable_FilterFilter condition to specify which rows to delete.
allBooleanSet to true to delete all rows.

manyToManyJoinTable_insert:ManyToManyJoinTable_KeyOutput!

✨ Insert a singleManyToManyJoinTable into the table and return its key. Columns not specified indata will receive defaults (e.g.null).

FieldTypeDescription
dataManyToManyJoinTable_Data!Data object to insert into the table.

manyToManyJoinTable_insertMany:[ManyToManyJoinTable_KeyOutput!]!

✨ InsertManyToManyJoinTable objects into the table and return their keys. Columns not specified indata will receive defaults (e.g.null).

FieldTypeDescription
data[ManyToManyJoinTable_Data!]!List of data objects to insert into the table.

manyToManyJoinTable_update:ManyToManyJoinTable_KeyOutput

✨ Update a singleManyToManyJoinTable based onid,key orfirst, setting columns specified indata. Returns the key of the updatedManyToManyJoinTable ornull if not found.

FieldTypeDescription
keyManyToManyJoinTable_KeyThe key used to identify the object.
firstManyToManyJoinTable_FirstRowFetch the first row based on the filters and ordering.
dataManyToManyJoinTable_Data!Data object containing fields to be updated.

manyToManyJoinTable_updateMany:Int!

✨ UpdateManyToManyJoinTable objects matchingwhere conditions (orall, if true) according todata. Returns the number of rows updated.

FieldTypeDescription
whereManyToManyJoinTable_FilterFilter condition to specify which rows to update.
allBooleanSet to true to update all rows.
dataManyToManyJoinTable_Data!Data object containing fields to update.

manyToManyJoinTable_upsert:ManyToManyJoinTable_KeyOutput!

✨ Insert or update a singleManyToManyJoinTable into the table, based on the primary key. Returns the key of the newly inserted or existing updatedManyToManyJoinTable.

FieldTypeDescription
dataManyToManyJoinTable_Data!Data object to insert or update if it already exists.

manyToManyJoinTable_upsertMany:[ManyToManyJoinTable_KeyOutput!]!

✨ Insert or updateManyToManyJoinTable objects into the table, based on the primary key. Returns the key of the newly inserted or existing updatedManyToManyJoinTable.

FieldTypeDescription
data[ManyToManyJoinTable_Data!]!List of data objects to insert or update if it already exists.

manyToOneExample_delete:ManyToOneExample_KeyOutput

✨ Delete a singleManyToOneExample based onid,key orfirst and return its key (ornull if not found).

FieldTypeDescription
idUUIDThe unique ID of the object.
keyManyToOneExample_KeyThe key used to identify the object.
firstManyToOneExample_FirstRowFetch the first row based on the filters and ordering.

manyToOneExample_deleteMany:Int!

✨ DeleteManyToOneExample objects matchingwhere conditions (orall, if true). Returns the number of rows deleted.

FieldTypeDescription
whereManyToOneExample_FilterFilter condition to specify which rows to delete.
allBooleanSet to true to delete all rows.

manyToOneExample_insert:ManyToOneExample_KeyOutput!

✨ Insert a singleManyToOneExample into the table and return its key. Columns not specified indata will receive defaults (e.g.null).

FieldTypeDescription
dataManyToOneExample_Data!Data object to insert into the table.

manyToOneExample_insertMany:[ManyToOneExample_KeyOutput!]!

✨ InsertManyToOneExample objects into the table and return their keys. Columns not specified indata will receive defaults (e.g.null).

FieldTypeDescription
data[ManyToOneExample_Data!]!List of data objects to insert into the table.

manyToOneExample_update:ManyToOneExample_KeyOutput

✨ Update a singleManyToOneExample based onid,key orfirst, setting columns specified indata. Returns the key of the updatedManyToOneExample ornull if not found.

FieldTypeDescription
idUUIDThe unique ID of the object.
keyManyToOneExample_KeyThe key used to identify the object.
firstManyToOneExample_FirstRowFetch the first row based on the filters and ordering.
dataManyToOneExample_Data!Data object containing fields to be updated.

manyToOneExample_updateMany:Int!

✨ UpdateManyToOneExample objects matchingwhere conditions (orall, if true) according todata. Returns the number of rows updated.

FieldTypeDescription
whereManyToOneExample_FilterFilter condition to specify which rows to update.
allBooleanSet to true to update all rows.
dataManyToOneExample_Data!Data object containing fields to update.

manyToOneExample_upsert:ManyToOneExample_KeyOutput!

✨ Insert or update a singleManyToOneExample into the table, based on the primary key. Returns the key of the newly inserted or existing updatedManyToOneExample.

FieldTypeDescription
dataManyToOneExample_Data!Data object to insert or update if it already exists.

manyToOneExample_upsertMany:[ManyToOneExample_KeyOutput!]!

✨ Insert or updateManyToOneExample objects into the table, based on the primary key. Returns the key of the newly inserted or existing updatedManyToOneExample.

FieldTypeDescription
data[ManyToOneExample_Data!]!List of data objects to insert or update if it already exists.

oneToOneExample_delete:OneToOneExample_KeyOutput

✨ Delete a singleOneToOneExample based onid,key orfirst and return its key (ornull if not found).

FieldTypeDescription
idUUIDThe unique ID of the object.
keyOneToOneExample_KeyThe key used to identify the object.
firstOneToOneExample_FirstRowFetch the first row based on the filters and ordering.

oneToOneExample_deleteMany:Int!

✨ DeleteOneToOneExample objects matchingwhere conditions (orall, if true). Returns the number of rows deleted.

FieldTypeDescription
whereOneToOneExample_FilterFilter condition to specify which rows to delete.
allBooleanSet to true to delete all rows.

oneToOneExample_insert:OneToOneExample_KeyOutput!

✨ Insert a singleOneToOneExample into the table and return its key. Columns not specified indata will receive defaults (e.g.null).

FieldTypeDescription
dataOneToOneExample_Data!Data object to insert into the table.

oneToOneExample_insertMany:[OneToOneExample_KeyOutput!]!

✨ InsertOneToOneExample objects into the table and return their keys. Columns not specified indata will receive defaults (e.g.null).

FieldTypeDescription
data[OneToOneExample_Data!]!List of data objects to insert into the table.

oneToOneExample_update:OneToOneExample_KeyOutput

✨ Update a singleOneToOneExample based onid,key orfirst, setting columns specified indata. Returns the key of the updatedOneToOneExample ornull if not found.

FieldTypeDescription
idUUIDThe unique ID of the object.
keyOneToOneExample_KeyThe key used to identify the object.
firstOneToOneExample_FirstRowFetch the first row based on the filters and ordering.
dataOneToOneExample_Data!Data object containing fields to be updated.

oneToOneExample_updateMany:Int!

✨ UpdateOneToOneExample objects matchingwhere conditions (orall, if true) according todata. Returns the number of rows updated.

FieldTypeDescription
whereOneToOneExample_FilterFilter condition to specify which rows to update.
allBooleanSet to true to update all rows.
dataOneToOneExample_Data!Data object containing fields to update.

oneToOneExample_upsert:OneToOneExample_KeyOutput!

✨ Insert or update a singleOneToOneExample into the table, based on the primary key. Returns the key of the newly inserted or existing updatedOneToOneExample.

FieldTypeDescription
dataOneToOneExample_Data!Data object to insert or update if it already exists.

oneToOneExample_upsertMany:[OneToOneExample_KeyOutput!]!

✨ Insert or updateOneToOneExample objects into the table, based on the primary key. Returns the key of the newly inserted or existing updatedOneToOneExample.

FieldTypeDescription
data[OneToOneExample_Data!]!List of data objects to insert or update if it already exists.

stringTable_delete:StringTable_KeyOutput

✨ Delete a singleStringTable based onid,key orfirst and return its key (ornull if not found).

FieldTypeDescription
idUUIDThe unique ID of the object.
keyStringTable_KeyThe key used to identify the object.
firstStringTable_FirstRowFetch the first row based on the filters and ordering.

stringTable_deleteMany:Int!

✨ DeleteStringTable objects matchingwhere conditions (orall, if true). Returns the number of rows deleted.

FieldTypeDescription
whereStringTable_FilterFilter condition to specify which rows to delete.
allBooleanSet to true to delete all rows.

stringTable_insert:StringTable_KeyOutput!

✨ Insert a singleStringTable into the table and return its key. Columns not specified indata will receive defaults (e.g.null).

FieldTypeDescription
dataStringTable_Data!Data object to insert into the table.

stringTable_insertMany:[StringTable_KeyOutput!]!

✨ InsertStringTable objects into the table and return their keys. Columns not specified indata will receive defaults (e.g.null).

FieldTypeDescription
data[StringTable_Data!]!List of data objects to insert into the table.

stringTable_update:StringTable_KeyOutput

✨ Update a singleStringTable based onid,key orfirst, setting columns specified indata. Returns the key of the updatedStringTable ornull if not found.

FieldTypeDescription
idUUIDThe unique ID of the object.
keyStringTable_KeyThe key used to identify the object.
firstStringTable_FirstRowFetch the first row based on the filters and ordering.
dataStringTable_Data!Data object containing fields to be updated.

stringTable_updateMany:Int!

✨ UpdateStringTable objects matchingwhere conditions (orall, if true) according todata. Returns the number of rows updated.

FieldTypeDescription
whereStringTable_FilterFilter condition to specify which rows to update.
allBooleanSet to true to update all rows.
dataStringTable_Data!Data object containing fields to update.

stringTable_upsert:StringTable_KeyOutput!

✨ Insert or update a singleStringTable into the table, based on the primary key. Returns the key of the newly inserted or existing updatedStringTable.

FieldTypeDescription
dataStringTable_Data!Data object to insert or update if it already exists.

stringTable_upsertMany:[StringTable_KeyOutput!]!

✨ Insert or updateStringTable objects into the table, based on the primary key. Returns the key of the newly inserted or existing updatedStringTable.

FieldTypeDescription
data[StringTable_Data!]!List of data objects to insert or update if it already exists.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-21 UTC.