nestjs / graphql

GraphQL (TypeScript) module for Nest framework (node.js) 🍷
https://docs.nestjs.com/graphql/quick-start
MIT License
1.45k stars 391 forks source link

feat(graphql): add support for option newline at the end of schema file #3222

Closed sabolch closed 2 months ago

sabolch commented 2 months ago

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

What is the current behavior?

Issue Number: #2732

What is the new behavior?

Added new option addNewlineAtEnd to BuildSchemaOptions, which appends a newline at the end of the generated GraphQL SDL file when set to true. If the option is set to false or omitted, the SDL file will be generated without adding an extra newline at the end. This option is applicable only in the code-first approach.

Does this PR introduce a breaking change?

Other information

kamilmysliwiec commented 2 months ago

lgtm