dotansimha / dotansimha/graphql-code-generator
[schema-ast] sort parameter ignored
- Dominant language
- TypeScript
- Stars
- 11.3k
- Forks
- 1.4k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 23
Description
### Which packages are impacted by your issue?
schema-ast plugin
### Describe the bug
With the `schema-ast` plugin, the `sort` option is ignored and the output is sorted every time.
I'm trying to dump my schema composed of multiple `.graphql` files but don't want my graphql `input` properties sorted as generated code depends on this order.
### Your Example Website or App
Personnal repo
### Steps to Reproduce the Bug or Issue
Create a simple type and generate the AST from it while setting `sort: false` as argument.
```yaml
./path/schema.graphql:
plugins:
- "schema-ast"
config:
sort: false
```
### Expected behavior
When using `sort: false` the properties of generate AST shouldn't be sorted.
### Screenshots or Videos
_No response_
### Platform
- OS: [e.g. macOS, Windows, Linux]
- NodeJS: [e.g. 18.5.0]
- `graphql` version: [e.g. 16.3.0]
- `@graphql-codegen/*` version(s): [e.g. 2.6.2]
### Codegen Config File
_No response_
### Additional context
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.