#How do I generate GraphQL schema on specific relative path?

2 messages · Page 1 of 1 (latest)

coral rapidsBOT
gloomy adder
#

I've figured it out after reading through the schema generator source code (https://github.com/payloadcms/payload/blob/main/packages/graphql/src/bin/generateSchema.ts) . For anyone curious: make sure to define PAYLOAD_GRAPHQL_SCHEMA_PATH="../../packages/graphql/schema.graphql" in your environment.

I love open-source projects like this one so much because we can actually figure out how to solve problems on our own. Payload is amazing! 🚀

GitHub

Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for buildi...