Replies: 1 comment 6 replies
-
|
Yeah, unfortunately, we don't currently have a way of adding ObjectType to the TypeDefinitionRegistry. We will need to add support for that. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have a graphql-java application with a lot of custom code around translating my domain model to GraphQL types, and I'm interested in using DGS and the advanced feature "schema from code", but running into some stumbling blocks.
My code handles creating
GraphQLOutputTypes andGraphQLInputTypes from my POJOs, but it looks like the DGS way revolves around working with aTypeDefinitionRegistry.I'm wondering if anyone can provide some pointers on how to go from
GraphQLOutputType/GraphQLInputTypeto somethingTypeDefinitionRegistrycan understand?GraphQLObjectTypedoes have a.getDefinition(), but TypeDefinitionRegistry takes anObjectTypeExtensionDefinition, not anObjectTypeDefinition. As well, I don't see any way to convert a GraphQLList..Any pointers are welcome, I think DGS looks really exciting!
Beta Was this translation helpful? Give feedback.
All reactions