async-graphql/docs/en/src/define_schema.md

7 lines
467 B
Markdown
Raw Normal View History

2020-04-15 03:15:30 +00:00
# Schema
2020-05-09 20:56:15 +00:00
2020-09-01 05:47:22 +00:00
After defining the basic types, you need to define a schema to combine them. The schema consists of three types: a query object, a mutation object, and a subscription object, where the mutation object and subscription object are optional.
2020-05-09 20:56:15 +00:00
2020-09-01 05:47:22 +00:00
When the schema is created, `Async-graphql` will traverse all object graphs and register all types. This means that if a GraphQL object is defined but never referenced, this object will not be exposed in the schema.
2020-05-09 20:56:15 +00:00