InterviewBuddy
All interview questions

What is a GraphQL schema?

Beginner

Answer

A schema defines the types, fields, arguments, and operations clients may request from an API.

Explanation

It provides a public contract that requests can be validated against.

Example

type User { id: ID! name: String! }