npm.io
0.9.13 • Published 2d ago

@nexusts/graphql

Licence
MIT
Version
0.9.13
Deps
1
Size
80 kB
Vulns
0
Weekly
4.2K
Stars
1

@nexusts/graphql

NexusTS — Bun-native fullstack framework

Description

SDL-first GraphQL endpoint with @Resolver decorators.

Single GraphQL endpoint. POST /graphql, GET /graphql?query=, GET /graphql/schema, in-bundle GraphiQL playground. SDL-first; @Resolver / @Query / @Mutation decorators.

Install

This module is part of the NexusTS monorepo. Each module is published as its own npm package under the @nexusts/ scope.

Most apps start with just the core:

bun add @nexusts/core

Then add this module only if you need it:

bun add @nexusts/graphql

Peer dependencies

bun add graphql
  • graphql ^17.0.0 — Required for building / executing GraphQL schemas.

Without them the module loads but its public methods throw a clear error pointing to this install command on first call.

Usage

import { /* public API */ } from "@nexusts/graphql";

See the user guide and the example app for a working demo.

License

MIT — see the root LICENSE.

Keywords