You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The definition of a data model. A data model is a collection of objects of a particular type. Models can support one or
more CRUD operations.
Name
Type
Required
Description
kind
string
true
version
string
true
definition
object
true
The definition of a data model. A data model is a collection of objects of a particular type. Models can support one or more CRUD operations.
ModelV1
The definition of a data model. A data model is a collection of objects of a particular type. Models can support one or
more CRUD operations.
Name
Type
Required
Description
name
object
true
The name of the data model.
objectType
object
true
The type of the objects of which this model is a collection.
globalIdSource
boolean
false
Whether this model should be used as the global ID source for all objects of its type.
arguments
array
false
A list of arguments accepted by this model. Defaults to no arguments.
source
object
false
The source configuration for this model.
filterableFields
array
true
A list of fields that can be used to filter the objects in this model.
orderableFields
array
true
A list of fields that can be used to order the objects in this model.
graphql
object
false
Configuration for how this model should appear in the GraphQL schema.
description
string,null
false
The description of the model. Gets added to the description of the model in the graphql schema.
Examples:
name: ArticlesobjectType: articleglobalIdSource: truearguments: []source:
dataConnectorName: data_connectorcollection: articlestypeMapping:
article:
fieldMapping:
article_id:
column: idtitle:
column: titleauthor_id:
column: author_idargumentMapping: {}filterableFields:
- fieldName: article_idoperators:
enableAll: true
- fieldName: titleoperators:
enableAll: true
- fieldName: author_idoperators:
enableAll: trueorderableFields:
- fieldName: article_idorderByDirections:
enableAll: true
- fieldName: titleorderByDirections:
enableAll: true
- fieldName: author_idorderByDirections:
enableAll: truegraphql:
selectUniques:
- queryRootField: ArticleByIDuniqueIdentifier:
- article_iddescription: Description for the select unique ArticleByIDselectMany:
queryRootField: ArticleManydescription: Description for the select many ArticleManyargumentsInputType: nullfilterExpressionType: Article_Where_ExporderByExpressionType: Article_Order_Bydescription: Description for the model Articles
ArgumentDefinition
The definition of an argument for a field, command, or model.
Name
Type
Required
Description
name
string
true
type
string
true
A reference to an Open DD type including nullable values and arrays.
Suffix '!' to indicate a non-nullable reference, and wrap in '[]' to indicate an array. Eg: '[String!]!' is a
non-nullable array of non-nullable strings. | | description | string,null | false | |
ModelSource
Description of how a model maps to a particular data connector
Name
Type
Required
Description
dataConnectorName
object
true
The name of the data connector backing this model.
collection
string
true
The collection in the data connector that backs this model.
typeMapping
object
false
How the various types used in this model correspond to entities in the data connector.
The name of a field in a user-defined object type.
operators
object
true
EnableAllOrSpecific
Name
Type
Required
Description
enableAll
boolean
true
Name
Type
Required
Description
enableSpecific
array
true
OrderableField
Name
Type
Required
Description
fieldName
string
true
The name of a field in a user-defined object type.
orderByDirections
object
true
EnableAllOrSpecific
Name
Type
Required
Description
enableAll
boolean
true
Name
Type
Required
Description
enableSpecific
array
true
ModelGraphQlDefinition
The definition of how a model appears in the GraphQL API.
Name
Type
Required
Description
selectUniques
array
true
For each select unique defined here, a query root field is added to the GraphQL API that can be used to select a unique object from the model.
selectMany
object
false
Select many configuration for a model adds a query root field to the GraphQl API that can be used to retrieve multiple objects from the model.
argumentsInputType
object
false
The type name of the input type used to hold the arguments of the model.
filterExpressionType
object
false
The type name of the filter boolean expression input type.
orderByExpressionType
object
false
The type name of the order by expression input type.
Examples:
selectUniques:
- queryRootField: ArticleByIDuniqueIdentifier:
- article_iddescription: Description for the select unique ArticleByIDselectMany:
queryRootField: ArticleManydescription: Description for the select many ArticleManyargumentsInputType: nullfilterExpressionType: Article_Where_ExporderByExpressionType: Article_Order_By
SelectUniqueGraphQlDefinition
The definition of the GraphQL API for selecting a unique row/object from a model.
Name
Type
Required
Description
queryRootField
object
true
The name of the query root field for this API.
uniqueIdentifier
array
true
A set of fields which can uniquely identify a row/object in the model.
description
string,null
false
The description of the select unique graphql definition of the model. Gets added to the description of the select unique root field of the model in the graphql schema.
SelectManyGraphQlDefinition
The definition of the GraphQL API for selecting rows from a model.
Name
Type
Required
Description
queryRootField
object
true
The name of the query root field for this API.
description
string,null
false
The description of the select many graphql definition of the model. Gets added to the description of the select many root field of the model in the graphql schema.