0.1.0-dev.03a85f44875cc2268b504dba024aa82fb2e1f8f0 • Published 10 months ago

@antribute/backend-graphql-pothos v0.1.0-dev.03a85f44875cc2268b504dba024aa82fb2e1f8f0

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

Antribute Backend Pothos Provider

Adds Pothos GraphQL Support to the Antribute Backend

Installation

pnpm i @antribute/backend-graphql-pothos @pothos/core graphql graphql-scalars -D

If your application is configured to use auth or permissions, also install the following peer dependency

pnpm i @pothos/plugin-scope-auth

If your application's ORM is prisma, also install the following peer dependencies

pnpm i @pothos/plugin-prisma @pothos/plugin-prisma-utils

Usage

  1. Create a new file called .antributerc.ts
  2. Add the following
    import { defineConfig } from '@antribute/backend-core';
    export default defineConfig({ graphql: { platform: '@antribute/backend-graphql-pothos' } });
  3. Run the Antribute CLI to auto-generate required files