Measures Concepts
GitHub icon

GraphQL Schema Definition Language

GraphQL Schema Definition Language - Interface design language

< >

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

#1336on PLDB 6Years Old

A type definition syntax to the GraphQL specification.


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 ยท Search ยท Add Language ยท Features ยท Creators ยท Resources ยท About ยท Blog ยท Acknowledgements ยท Queries ยท Stats ยท Sponsor ยท Day 605 ยท feedback@pldb.io ยท Logout