loopback-next icon indicating copy to clipboard operation
loopback-next copied to clipboard

feat: adds emitSchemaFile option to GraphQLServer config

Open mschnee opened this issue 4 years ago • 2 comments

Signed-off-by: Matthew Schnee [email protected]

This PR updates the options for GraphQLServer to supply the optional emitSchemaFile option. This is the same configuration used by TypeGraphQL's buildSchema method.

Note that this is the basic, naïve implementation that TypeGraphQL itself uses. For a full schema including support for custom directives, using GraphQLServer.exportGraphqlSpec may be preferable.

Checklist

  • [x] DCO (Developer Certificate of Origin) signed in all commits
  • [x] npm test passes on your machine
  • [x] New tests added or existing tests modified to cover all changes
  • [x] Code conforms with the style guide
  • [ ] API Documentation in code was updated
  • [ ] Documentation in /docs/site was updated
  • [ ] Affected artifact templates in packages/cli were updated
  • [ ] Affected example projects in examples/* were updated

👉 Check out how to submit a PR 👈

mschnee avatar Oct 20 '21 20:10 mschnee

Pull Request Test Coverage Report for Build 1365146989

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-76.03%) to 0.0%

Totals Coverage Status
Change from base Build 1363589294: -76.03%
Covered Lines: 0
Relevant Lines: 0

💛 - Coveralls

coveralls avatar Oct 20 '21 20:10 coveralls

@mschnee I see we both worked on the same thing. Anyways, please update the README to inform users of this feature. Other than LGTM

mrmodise avatar Oct 21 '21 09:10 mrmodise