https://github.com/xamogh/safe-urqlcodgen-mutations
reads urql gql codegen file, emits a new file containing mutations with excess property filters and warnings
https://github.com/xamogh/safe-urqlcodgen-mutations
codgen excess-property-checks graphql typescript urql
Last synced: about 2 months ago
JSON representation
reads urql gql codegen file, emits a new file containing mutations with excess property filters and warnings
- Host: GitHub
- URL: https://github.com/xamogh/safe-urqlcodgen-mutations
- Owner: xamogh
- License: mit
- Created: 2022-11-19T11:34:04.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-24T05:20:23.000Z (over 2 years ago)
- Last Synced: 2024-04-27T11:42:11.141Z (about 1 year ago)
- Topics: codgen, excess-property-checks, graphql, typescript, urql
- Language: Rust
- Homepage: https://www.npmjs.com/package/safe-urqlcodgen-mutations
- Size: 711 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# safe-urql-urqlcodegen-mutations
#### Reads codegen generated graphql.ts file, then catches all the mutations, enhances them with excess property filters and warnings, and writes into a new generated file.
#### How to run?
1) Place the binary in your project root directory.
2) Create a safe-urqlcodgen-mutations.conf file at your root directory
3) Inside the conf file add a line: generated_path={your_codegen_generated_path}
Eg: generated_path=src/@generated
4) Run the binary
5) Mutations should be emitted in the same path