Top 1,000 Features Creators Resources Blog Explorer Download
GitHub icon

GraphQL Schema Definition Language

< >

GraphQL Schema Definition Language is an interface design language created in 2018.

#2152on PLDB 6Years Old


Example from the web:
# Enumeration type for a level of priority enum Priority { LOW MEDIUM HIGH } # Our main todo type type Todo { id: ID! name: String! description: String priority: Priority! } type Query { # Get one todo item todo(id: ID!): Todo # Get all todo items allTodos: [Todo!]! } type Mutation { addTodo(name: String!, priority: Priority = LOW): Todo! removeTodo(id: ID!): Todo! } schema { query: Query mutation: Mutation }

Language features

Feature Supported Token Example
Line Comments “””
“”” A comment
Comments
Semantic Indentation X
MultiLine Comments X

View source

- Build the next great programming language · About · Acknowledgements · Extensions · Day 630 · Donate · feedback@pldb.io