What is the relationship between concepts such as Schema,Type,Query in GraphQL?

read some articles. There are the following concepts in GraphQL:

1, Schema
2, Type
3, Query
4, query,mutation,subscription / / Query and query seem to be two concepts

question:
query,mutation,subscription these three are basically clear, corresponding to read, write, and realtime . Have the following questions:

what is the relationship between Query at point 3 and query at point 4? What is the relationship between
II, Schema, Type, Query, (query,mutation,subscription)?

Please help me sort it out. Thank you, boss!

Jun.09,2021

  • Query represents a general term for queries, that is, a query can become a Query, and query is a type of Query. Currently, there are three types, namely query,mutation,subscription
  • .
  • the relationship between the four is simply like this: Schema is described by Type, the query syntax and format of Query are constrained by Schema, and query,mutation,subscription is the three types of Query, corresponding to different business scenarios

if you are interested, please take a look at the articles I have posted, 30 minutes to understand the core concepts of GraphQL , which should be involved in all the specific things.

Menu