Closed OliverEvans96 closed 4 years ago
Hey Oliver, have you tried the following?
import { settings } from 'nexus'
settings.change({
schema: {
generateGraphQLSDLFile: './schema.graphql',
},
})
Brilliant, that's exactly what I was looking for! Thanks!
Perceived Problem
Getting the SDL from a Nexus Framework graph seems to require running the server and downloading the schema from the playground. This makes schema stitching and/or connecting the frontend rather clunky.
Ideas / Proposed Solution(s)
Make an optional flag to generate
schema.graphl
at build time as in@nexus/schema