Nhost logo

GraphQL integration

Nhost GraphQL integration for Draftbit

Postgres, Hasura, and auth backend for client apps

What is Nhost?

Nhost is a Postgres + Hasura + Auth stack designed for client apps. The Bearer JWT from Nhost Auth scopes queries by user.

Use Nhost with Draftbit

  • Schema discovered automatically via GraphQL introspection.
  • Queries, mutations, and subscriptions usable across screens and AI agents.
  • Auth headers configured once and reused for every operation.
  • Works with custom Nhost schemas and federated graphs.

Example

nhost-query.graphql
# Example query against Nhost
query GetItems {
  items(limit: 10) {
    id
    name
    createdAt
  }
}

Use cases

  • Power a mobile app with a hosted database and APIs
  • Add search, filtering, and pagination to a list-driven feature
  • Read and write app data without managing your own server

Authentication

Add any required auth headers when you connect Nhost. Headers are stored per app and applied to every operation.

Use Nhost in a Draftbit app today

Use Draftbit to build your app, configure Nhost, and test the feature before publishing.

Start building free

Frequently asked questions

What is the Nhost GraphQL integration?

Nhost is a Postgres + Hasura + Auth stack designed for client apps. The Bearer JWT from Nhost Auth scopes queries by user.

How do I connect Nhost to a Draftbit app?

In your Draftbit app, go to Integrations and then GraphQL and choose Nhost. Enter the endpoint URL and any auth headers. Draftbit introspects the schema and exposes its operations to your app and to the AI agents.

Do I need to write GraphQL queries by hand?

No. Once Draftbit has introspected the Nhost schema, you can bind components to operations visually, and the AI agents can compose queries against the live schema.

What can I build with Nhost and Draftbit?

Most teams use Nhost as a backend platform for their app. You might use Nhost to power a mobile app with a hosted database and APIs, or to add search, filtering, and pagination to a list-driven feature.

Related GraphQL

Get started free Browse all GraphQL