TypesQueriesMutationsCopy SDL

Generated SDL

type User {
  id: ID!
  name: String!
  email: String!
  age: Int
  createdAt: String!
  updatedAt: String!
}

input CreateUserInput {
  name: String!
  email: String!
  age: Int
}

input UpdateUserInput {
  name: String
  email: String
  age: Int
}

type Query {
  user(id: ID!): User
  users: [User!]!
}

type Mutation {
  createUser(input: CreateUserInput!): User!
  updateUser(id: ID!, input: UpdateUserInput!): User!
  deleteUser(id: ID!): Boolean!
}

Frequently Asked Questions

What is GraphQL SDL?
SDL (Schema Definition Language) is the syntax used to define GraphQL schemas. It describes types, queries, mutations, and their relationships.
What types are supported?
String, Int, Float, Boolean, ID, and references to other entities defined in your schema.
Can I add multiple entities?
Yes. You can define multiple entities and the tool will generate types, queries, and mutations for all of them.
Share:

Love this tool? Explore 999+ more

Free online tools for images, PDFs, text, code, and more. All running in your browser.

Explore All Tools