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

Resolve invalid names when scalar! is applied to a type with a type parameter #1522

Open
IvanUkhov opened this issue May 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@IvanUkhov
Copy link

IvanUkhov commented May 17, 2024

Hello,

I understand that scalar! has an argument for controlling the name, but by default, it generates an invalid name when applied to a type with a type parameters, such as scalar!(Foo<Bar>) resulting in "name": String("Foo<Bar>") in the schema introspection.

@IvanUkhov IvanUkhov added the bug Something isn't working label May 17, 2024
@sunli829
Copy link
Collaborator

rename to FooBar

scalar!(Foo<Bar>, "FooBar");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants