CDF will automatically generate GraphQL types for the collection of views making up a DMS data model.
An example generated type:
Learn how CDF automatically generates GraphQL types for data models and how to use them for queries and mutations.
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
}
Was this page helpful?