Backend For Frontend
Build your backend declaratively using a schema-first approach.
Accelerate development by leveraging powerful directives and scalars.
extend schema
@openapi(name: "OpenAI",
url: "https://api.openai.com/v1/",
schema: "https://raw.githubusercontent.com/openai/openai-openapi/master/openapi.yaml",
headers: [{ name: "Authorization", value: "Bearer {{ env.OPENAI_API_KEY }}" }])
@stripe(apiKey: "{{ env.STRIPE_API_KEY }}")
type Post @model {
title: String!
slug: String! @unique
body: String!
publishOn: Date!
comments: [Comment] @resolver("post/comments")
}
Easy integration of data sources
Connect your existing APIs and databases and expose them via a unified GraphQL endpoint.

