# @giraphql/core

> GiraphQL is a plugin based schema builder for creating code-first GraphQL schemas in typescript

Latest version **2.23.0** (published 2022-01-05) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @giraphql/core
pnpm add @giraphql/core
yarn add @giraphql/core
bun add @giraphql/core
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.23.0 |
| Published | 2022-01-05 |
| First published | 2019-11-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 926.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2628 |
| Author | Michael Hayes |
| Maintainers | hayes |
| Keywords | giraphql, graphql, schema, types, typescript, builder, framework, plugin, deno |

## Links

- npm: https://www.npmjs.com/package/@giraphql/core
- Repository: https://github.com/hayes/giraphql
- Homepage: https://github.com/hayes/giraphql#readme
- Issues: https://github.com/hayes/giraphql/issues
- npm.io page: https://npm.io/package/@giraphql/core

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 2.23.0 (latest) — 2022-01-05
- 0.0.0-preview-202110141166 (preview) — 2021-11-14
- 2.22.0 — 2021-12-15
- 2.21.0 — 2021-12-13
- 2.20.0 — 2021-12-13
- 2.19.1 — 2021-11-30
- 2.19.0 — 2021-11-21
- 2.18.2 — 2021-11-20
- 2.18.1 — 2021-11-17
- 2.18.0 — 2021-11-17
- 2.17.0 — 2021-11-04
- 2.16.0 — 2021-09-30
- 2.15.3 — 2021-09-24
- 2.15.2 — 2021-09-22
- 2.15.1 — 2021-08-30
- … 126 more at https://npm.io/package/@giraphql/core/versions

## README

![GiraphQL](./website/public/assets/logo-name-auto.svg)

## GiraphQL - A plugin based GraphQL schema builder for typescript

GiraphQL makes writing graphql schemas in typescript easy, fast and enjoyable. The core of GiraphQL
adds 0 overhead at runtime, and has `graphql` as its only dependency.

By leaning heavily on typescripts ability to infer types, GiraphQL is the most type-safe way of
writing GraphQL schemas in typescript/node while requiring very few manual type definitions and no
code generation.

GiraphQL has a unique and powerful plugin system that makes every plugin feel like its features are
built into the core library. Plugins can extend almost any part of the API by adding new options or
methods that can take full advantage of GiraphQLs type system.

## Hello, World

```typescript
import { ApolloServer } from 'apollo-server';
import SchemaBuilder from '@giraphql/core';

const builder = new SchemaBuilder({});

builder.queryType({
  fields: (t) => ({
    hello: t.string({
      args: {
        name: t.arg.string(),
      },
      resolve: (parent, { name }) => `hello, ${name || 'World'}`,
    }),
  }),
});

new ApolloServer({
  schema: builder.toSchema({}),
}).listen(3000);
```

## Full docs available at https://giraphql.com

## Plugins that make GiraphQL even better

- ## [Scope Auth](https://giraphql.com/plugins/scope-auth)
  Add global, type level, or field level authorization checks to your schema
- ## [Validation](https://giraphql.com/plugins/validation)
  Validating your inputs and arguments
- ## [Dataloader](https://giraphql.com/plugins/dataloader)
  Quickly define data-loaders for your types and fields to avoid n+1 queries.
- ## [Relay](https://giraphql.com/plugins/relay)
  Easy to use builder methods for defining relay style nodes and connections, and helpful utilities
  for cursor based pagination.
- ## [Simple Objects](https://giraphql.com/plugins/simple-objects)
  Define simple object types without resolvers or manual type definitions.
- ## [Mocks](https://giraphql.com/plugins/mocks)
  Add mock resolver for easier testing
- ## [Sub-Graph](https://giraphql.com/plugins/sub-graph)
  Build multiple subsets of your graph to easily share code between internal and external APIs.
- ## [Directives](https://giraphql.com/plugins/directives)
  Integrate with existing schema graphql directives in a type-safe way.
- ## [Smart Subscriptions](https://giraphql.com/plugins/smart-subscriptions)
  Make any part of your graph subscribable to get live updates as your data changes.
- ## [Errors](https://giraphql.com/plugins/errors)
  A plugin for easily including error types in your GraphQL schema and hooking up error types to
  resolvers.
- ## [**Prisma**](https://giraphql.com/plugins/prisma)
  A plugin for more efficient integration with prisma that can help solve n+1 issues and more
  efficiently resolve queries
- ## [**Complexity**](https://giraphql.com/plugins/complexity)
  A plugin for defining and limiting complexity of queries

---
_Source: https://npm.io/package/@giraphql/core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
