> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cognite.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Autogenerated GraphQL types

> Learn how CDF automatically generates GraphQL types for data models and how to use them for queries and mutations.

When you have defined an industrial knowledge graph with the data modeling REST API, use the GraphQL interface to [**query**](/cdf/dm/dm_graphql/dm_graphql_querying) and [**mutate**](/cdf/dm/dm_graphql/dm_graphql_mutations) data in the instances mapped by the views in your graph.

<Note>
  The capabilities available via the GraphQL interface to data modeling represent a subset of the available capabilities from the DMS [query](/cdf/dm/dm_concepts/dm_querying) and [ingestion](/cdf/dm/dm_concepts/dm_ingestion) endpoints.
</Note>

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

An example generated type:

```graphql wrap theme={"languages":{"custom":["/_languages/kuiper.json","../_languages/kuiper.json"]}}
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
}
```
