Generate GraphQL SDL for object types, inputs, enums, and relationships.
Entities and fields are serialized into SDL with type wrappers and optional descriptions. The output defines a contract but does not create resolvers or validate backing data.
{"id":1,"name":"Alice","email":"[email protected]","active":true,"age":30}
# Generated GraphQL Schema
type Root {
id: Int
name: String
email: String
active: Boolean
age: Int
}
type Query {
root(id: ID!): Root
roots(limit: Int, offset: Int): [Root!]!
}
Schema-first APIs, mock servers, and versioned documentation generate SDL.