0.1.0-dev.ade0d643b13191ecd29d033b97c41172f5255717 • Published 3 years ago
@antribute/backend-graphql-pothos v0.1.0-dev.ade0d643b13191ecd29d033b97c41172f5255717
Antribute Backend Pothos Provider
Adds Pothos GraphQL Support to the Antribute Backend
Installation
pnpm i @antribute/backend-graphql-pothos -D && pnpm i @pothos/core graphql graphql-scalarsIf your application is configured to use auth or permissions, also install the following peer dependency
pnpm i @pothos/plugin-scope-authIf your application's ORM is prisma, also install the following peer dependencies
pnpm i @pothos/plugin-prisma @pothos/plugin-prisma-utilsUsage
- Create a new file called
.antributerc.ts - Add the following
import { defineConfig } from '@antribute/backend-core'; export default defineConfig({ graphql: { platform: '@antribute/backend-graphql-pothos' } }); - Run the Antribute CLI to auto-generate required files