nexus icon indicating copy to clipboard operation
nexus copied to clipboard

Add support for json out from schema

Open veritem opened this issue 2 years ago • 4 comments

Currently schema only generates .gql file only, if there was a way to generate .json schema it would be aplus

veritem avatar Jun 17 '22 07:06 veritem

makeSchema takes an optional customPrintSchemaFn which you could probably use to print json instead with your library of choice.

santialbo avatar Jun 30 '22 09:06 santialbo

@santialbo I ended up using codegen not sure how that works

veritem avatar Jun 30 '22 09:06 veritem

That's another option, I also use graphql codegen on my project

santialbo avatar Jun 30 '22 09:06 santialbo

codegen seems to be a good option for this but I would love to have it built into nexus

veritem avatar Jun 30 '22 09:06 veritem