Dev Tools

JSON to GraphQL Schema

Generate GraphQL type definitions from a JSON example object.

Root Type Name
JSON Input
GraphQL Schema
type RootAddress {
  street: String
  city: String
  zip: String
}

type RootPosts {
  id: Int
  title: String
  published: Boolean
}

type Root {
  id: Int
  name: String
  email: String
  active: Boolean
  score: Float
  tags: [String]
  address: RootAddress
  posts: [RootPosts]
}
Was this page helpful?

Related tools