@contractspec/lib.graphql-core
v3.7.13
Published
Shared GraphQL core: Pothos builder factory, scalars, tracing & complexity
Maintainers
Readme
@contractspec/lib.graphql-core
Website: https://contractspec.io
Shared GraphQL core: Pothos builder factory, scalars, tracing & complexity.
What It Provides
- Layer: lib.
- Consumers: graphql-federation, graphql-prisma, contracts-runtime-server-graphql, bundles.
- Related ContractSpec packages include
@contractspec/tool.bun,@contractspec/tool.typescript. - Related ContractSpec packages include
@contractspec/tool.bun,@contractspec/tool.typescript.
Installation
npm install @contractspec/lib.graphql-core
or
bun add @contractspec/lib.graphql-core
Usage
Import the root entrypoint from @contractspec/lib.graphql-core, or choose a documented subpath when you only need one part of the package surface.
Architecture
src/index.tsis the root public barrel and package entrypoint.
Public Entry Points
- Export
.resolves through./src/index.ts.
Local Commands
bun run dev— contractspec-bun-build devbun run build— bun run prebuild && bun run build:bundle && bun run build:typesbun run typecheck— tsc --noEmitbun run publish:pkg— bun publish --tolerate-republish --ignore-scripts --verbosebun run publish:pkg:canary— bun publish:pkg --tag canarybun run clean— rm -rf distbun run prebuild— contractspec-bun-build prebuildbun run build:bundle— contractspec-bun-build transpilebun run build:types— contractspec-bun-build types
Recent Updates
- Replace eslint+prettier by biomejs to optimize speed.
Notes
- Builder factory is consumed by all GraphQL packages — interface changes have high blast radius.
- Scalar definitions must stay aligned with the schema lib.
- Tracing and complexity plugins must not introduce runtime overhead in production without opt-in.
