Closed SamuelGHill closed 2 years ago
Passes tests -->
$ npm run test
> gql-generator@1.0.15 test
> mocha -u qunit
✓ validate generated queries (246ms)
✓ limit depth (338ms)
✓ excludes deprecated fields by default (180ms)
✓ includes deprecated fields with includeDeprecatedFields flag (172ms)
✓ includes nested in union types (179ms)
5 passing (1s)
Allows for custom types and directives to be involved in a schema. Is currently supported in graphql
BuildSchema
--> https://github.com/graphql/graphql-js/issues/1854#issuecomment-490353851I am using gql-generator to build out query samples, and we use custom types and directives in our schemas. We do not need the validator.
With this PR, the CLI can add this flag,
--assumeValid true
gqlg --schemaFilePath index.graphql --destDirPath ./example/output --depthLimit 5 --assumeValid true