Skip to content

Any type with "Query" in its name gets ignored #167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ctrlplusb opened this issue Sep 1, 2022 · 4 comments · Fixed by #168
Closed

Any type with "Query" in its name gets ignored #167

ctrlplusb opened this issue Sep 1, 2022 · 4 comments · Fixed by #168
Labels
good first issue Good for newcomers

Comments

@ctrlplusb
Copy link
Contributor

For example;

type QueryFruitItem = {
  name: String!
}

type FruitsResponse = {
  items: [QueryFruitItem!]!
}

The generated schemas will not contain a function QueryFruitItemSchema() {.

Using the zod schema config, unaware if the same issue stands for the other output types.

Amazing idea this plugin btw 🤩

@github-actions github-actions bot added the good first issue Good for newcomers label Sep 1, 2022
@ctrlplusb
Copy link
Contributor Author

Fixed in #168

@Code-Hex
Copy link
Owner

Code-Hex commented Sep 2, 2022

@ctrlplusb Hi 👋
Thanks for creating this issue and your PR!

I'm checking the PR.

I'm so happy! Thank you!

Amazing idea this plugin btw 🤩

I saw your repositories and I'm very surprised at what you have achieved!

@Code-Hex
Copy link
Owner

Code-Hex commented Sep 2, 2022

@ctrlplusb I've published a new version that contains this bug fix.

https://github.com/Code-Hex/graphql-codegen-typescript-validation-schema/releases/tag/v0.6.1

Thank you so much!

@ctrlplusb
Copy link
Contributor Author

Amazing, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
2 participants