In GraphQL, what is the role of a Schema?

  • Define the data structure and types
  • Execute queries
  • Handle HTTP requests
  • Store data in the database
A Schema in GraphQL defines the types of data that can be queried and the relationships between them. It serves as a contract between the client and server, specifying the structure of the API.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *