-
-
Notifications
You must be signed in to change notification settings - Fork 798
Use correct type name when referencing type with ID<Type> #8504
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
base: main
Are you sure you want to change the base?
Conversation
Related: #6264 @michaelstaib @glen-84 : Did I miss something here? I considered fluent type definition naming and the [GraphQLName] attribute by using the name of the referenced ObjectType after it was created. I couldn’t think of anything else at the moment... |
src/HotChocolate/Core/src/Types/Types/Relay/Extensions/NodeIdNameDefinitionUnion.cs
Outdated
Show resolved
Hide resolved
src/HotChocolate/Core/src/Types/Types/Relay/Extensions/NodeIdNameDefinitionUnion.cs
Show resolved
Hide resolved
src/HotChocolate/Core/src/Types/Types/Relay/Extensions/RelayIdFieldExtensions.cs
Outdated
Show resolved
Hide resolved
src/HotChocolate/Core/src/Types/Types/Relay/Extensions/RelayIdFieldHelpers.cs
Show resolved
Hide resolved
src/HotChocolate/Core/src/Types/Types/Relay/NodeResolverTypeInterceptor.cs
Outdated
Show resolved
Hide resolved
src/HotChocolate/Core/test/Types.Tests/Types/Relay/IdDescriptorTests.cs
Outdated
Show resolved
Hide resolved
src/HotChocolate/Core/test/Types.Tests/Types/Relay/IdDescriptorTests.cs
Outdated
Show resolved
Hide resolved
src/HotChocolate/Core/test/Types.Tests/Types/Relay/IdDescriptorTests.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Glen <[email protected]>
I applied the changes from the review, thanks 👍 Regarding the docs: Should this change be mentioned in the migration guide from v15 to v16? I could add it in another PR. The generic ID attribute isnt very popular in the current docs, so maybe that could be reworked as well. |
Thanks @N-Olbert Looks good from my side (just one more indentation issue), but @michaelstaib will do a final check after GraphQLConf.
Yes, all breaking changes should be mentioned in the migration guide. A separate PR would be great.
I'll let Michael comment on this one. 🙂 |
@N-Olbert The indentation is still incorrect. 😁 It should be 4 spaces, not 3. |
@glen-84 meeh, sometimes the simplest things seem to be the hardest 😃 This is what I get if I let my IDE (Rider with the correct .editorconfig) reformat the code:
Following your last review, I moved the entire raw string two spaces to the left to make it align with the start of the |
@glen-84 was this one ready? |
Summary of the changes (Less than 80 chars)
descriptor.Name("...")
and[GraphQlName("...")]
forID<Type>
Closes #6256