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

The name defined in a [GraphQLName] attribute applied to a TDocument is not being reflected in the generated schema #26

Closed
rbeauchamp opened this issue Jul 24, 2024 · 0 comments · Fixed by #27
Labels
bug An error, flaw, or unintended behavior that needs to be addressed

Comments

@rbeauchamp
Copy link
Contributor

Describe the bug
The name defined in a [GraphQLName] attribute and applied to a TDocument is not being reflected in the generated schema. Like Hot Chocolate, the generated schema type name must reflect the name defined in the attribute.

For example,

[GraphQLName("Workspace")]
public class ReplicatedWorkspace : IReplicatedDocument
{
}

should generate a 'pushWorkspace,' not a 'pushReplicatedWorkspace' mutation field.

@rbeauchamp rbeauchamp added the bug An error, flaw, or unintended behavior that needs to be addressed label Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error, flaw, or unintended behavior that needs to be addressed
Projects
None yet
1 participant