Skip to content
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

foo_bar and fooBar types become both FooBar once generated, triggering duplicate errors #108

Open
nathani-axis opened this issue Mar 29, 2022 · 0 comments
Assignees
Labels
next What to do next

Comments

@nathani-axis
Copy link

I have a schema with this in it:

type Object {
    foo_bar: FooBar
    fooBar: FooBar
}

and when I run gqlgenc I get:

FooBar *FooBar `json:"foo_bar"`
FooBar *FooBar `json:"fooBar"`

which introduces a duplicate error. It's fixed when I manually change that code to:

Foo_Bar *FooBar `json:"foo_bar"`
FooBar  *FooBar `json:"fooBar"`
@Yamashou Yamashou self-assigned this Nov 13, 2024
@Yamashou Yamashou added the next What to do next label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next What to do next
Projects
None yet
Development

No branches or pull requests

2 participants