Saltar al contenido principal

Autogenerated GraphQL types

When you have defined an industrial knowledge graph with the data modeling REST API, use the GraphQL interface to query and mutate data in the instances mapped by the views in your graph.

nota

The capabilities available via the GraphQL interface to data modeling represent a subset of the available capabilities from the DMS query and ingestion endpoints.

CDF will automatically generate GraphQL types for the collection of views making up a DMS data model.

An example generated type:

type Movie {
"name of the movie" # inlined property description
name: String! # an exclamation mark denotes a required property
actors: [Actor] # An edge connection property. Is resolved by the GraphQL interface
producers: [Producer] @directRelation # A direct relation property. Can be resolved by the GraphQL interface.
director: Person # A direct relation property. Can be resolved by the GraphQL interface.
watchedIt: Boolean
}