Data · 1 file

Sample GraphQL SDL File

A GraphQL schema in Schema Definition Language, covering the main type-system features.

GraphQL SDL · 973 B

GraphQL schema

A GraphQL SDL schema with scalars, enums, interfaces, connections, input types, queries, mutations and a subscription.

CC0 · free for any use · Verified by an independent tool · Report a problem

schema.graphql — first linesGraphQL
"""Sample GraphQL schema — samplefiles.com"""
scalar DateTime

enum OrderStatus {
  PENDING
  PAID
  SHIPPED
  DELIVERED
  REFUNDED
}

interface Node {
  id: ID!
}

type Customer implements Node {
  id: ID!
  firstName: String!
  lastName: String!
  email: String!
  orders(first: Int = 10, after: String): OrderConnection!
}

type Order implements Node {
  id: ID!

File details

Size
973 B (973 bytes)
MIME type
application/graphql
SHA-256
d98fa1b0c518746a1b86e3a26c170278f19442d55aeefce95c673ffc3a223545
MD5
7be84b692c7d5c21cbd250cc03b06d70

Download from the command line

curl -L -o schema.graphql https://files.samplefiles.com/data/graphql/schema.graphql

Or check the download in your browser with the checksum calculator.