Query Operations

This reference doc is generated based on thisexample schema.

Query operations define the read-only entry points for fetching data in a GraphQL schema.

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

Data Connect Generated

mainTable:MainTable

✨ Look up a singleMainTable based onid,key orfirst and return selected fields (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.

mainTables:[MainTable!]!

✨ ListMainTable objects in the table and return selected fields, optionally filtered bywhere conditions

FieldTypeDescription
whereMainTable_FilterFilter condition to narrow down the query results.
orderBy[MainTable_Order!]Order the query results by specific fields.
offsetIntNumber of rows to skip before starting to return the results.
limitIntMaximum number of rows to return (defaults to 100 rows).
distinctBooleanSet to true to return distinct results.
havingMainTable_HavingFilter condition to apply to the groups of aggregate queries.

mainTables_search:[MainTable!]!

✨ Search forMainTable objects where fields with the @searchable directive contain a query string. Return selected fields, ordered by relevance of the query.)

FieldTypeDescription
whereMainTable_FilterFilter condition to narrow down the query results.
orderBy[MainTable_Order!]Order the query results by specific fields.
offsetIntNumber of rows to skip before starting to return the results.
limitIntMaximum number of rows to return (defaults to 100 rows).
distinctBooleanSet to true to return distinct results.
havingMainTable_HavingFilter condition to apply to the groups of aggregate queries.
queryStringThe search term to use.
relevanceThresholdFloatRelevance threshold to use for search results. If a result has a relevance score below this threshold, it will not be returned.
queryFormatSearch_QueryFormatThe query format for the search term.

mainTables_vectorField_similarity:[MainTable!]!

✨ ListMainTable objects and return selected fields, ordered by vector similarity between thevectorField field andcompare_embed.(Alternatively,compare can be used if the input is a raw Vector.)

FieldTypeDescription
compareVectorVector to compare with the stored vectors.
compare_embedVector_Embed_embed server value variant ofcompare (Vector to compare with the stored vectors.)
methodVectorSimilarityMethodSimilarity method to use for vector comparison (defaults toINNER_PRODUCT).
withinFloatThreshold for distance comparison.
whereMainTable_FilterFilter condition to apply when searching for similar vectors.
limitIntLimit the number of similar vectors returned (defaults to 100 rows).

manyToManyJoinTable:ManyToManyJoinTable

✨ Look up a singleManyToManyJoinTable based onid,key orfirst and return selected fields (ornull if not found).

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

manyToManyJoinTables:[ManyToManyJoinTable!]!

✨ ListManyToManyJoinTable objects in the table and return selected fields, optionally filtered bywhere conditions

FieldTypeDescription
whereManyToManyJoinTable_FilterFilter condition to narrow down the query results.
orderBy[ManyToManyJoinTable_Order!]Order the query results by specific fields.
offsetIntNumber of rows to skip before starting to return the results.
limitIntMaximum number of rows to return (defaults to 100 rows).
distinctBooleanSet to true to return distinct results.
havingManyToManyJoinTable_HavingFilter condition to apply to the groups of aggregate queries.

manyToOneExample:ManyToOneExample

✨ Look up a singleManyToOneExample based onid,key orfirst and return selected fields (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.

manyToOneExamples:[ManyToOneExample!]!

✨ ListManyToOneExample objects in the table and return selected fields, optionally filtered bywhere conditions

FieldTypeDescription
whereManyToOneExample_FilterFilter condition to narrow down the query results.
orderBy[ManyToOneExample_Order!]Order the query results by specific fields.
offsetIntNumber of rows to skip before starting to return the results.
limitIntMaximum number of rows to return (defaults to 100 rows).
distinctBooleanSet to true to return distinct results.
havingManyToOneExample_HavingFilter condition to apply to the groups of aggregate queries.

oneToOneExample:OneToOneExample

✨ Look up a singleOneToOneExample based onid,key orfirst and return selected fields (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.

oneToOneExamples:[OneToOneExample!]!

✨ ListOneToOneExample objects in the table and return selected fields, optionally filtered bywhere conditions

FieldTypeDescription
whereOneToOneExample_FilterFilter condition to narrow down the query results.
orderBy[OneToOneExample_Order!]Order the query results by specific fields.
offsetIntNumber of rows to skip before starting to return the results.
limitIntMaximum number of rows to return (defaults to 100 rows).
distinctBooleanSet to true to return distinct results.
havingOneToOneExample_HavingFilter condition to apply to the groups of aggregate queries.

stringTable:StringTable

✨ Look up a singleStringTable based onid,key orfirst and return selected fields (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.

stringTables:[StringTable!]!

✨ ListStringTable objects in the table and return selected fields, optionally filtered bywhere conditions

FieldTypeDescription
whereStringTable_FilterFilter condition to narrow down the query results.
orderBy[StringTable_Order!]Order the query results by specific fields.
offsetIntNumber of rows to skip before starting to return the results.
limitIntMaximum number of rows to return (defaults to 100 rows).
distinctBooleanSet to true to return distinct results.
havingStringTable_HavingFilter condition to apply to the groups of aggregate queries.

Built In

__schema:__Schema!

__type:__Type

FieldTypeDescription
nameString!

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.