Courses / Node.js
28. Defining GraphQL type definitions
Declare object types, queries, and mutations in GraphQL SDL for a service schema.
JavaScript
Defining GraphQL type definitions
GraphQL type definitions declare the shapes of data, queries, and mutations your API exposes.
"I want clients to know exactly what data they can ask for and how to change it."
GraphQL SDL (Schema Definition Language) describes object types, fields, input types, queries, and mutations so the server and clients share a contract. You write types and root Query/Mutation entries to define what operations exist and what data they return or accept.
"I want clients to know exactly what data they can ask for and how to change it."
GraphQL SDL (Schema Definition Language) describes object types, fields, input types, queries, and mutations so the server and clients share a contract. You write types and root Query/Mutation entries to define what operations exist and what data they return or accept.