Support for generic types #956
Replies: 2 comments 5 replies
-
This is not part of the GraphQL standard, and not a part of GraphQL Java parsing/
This transpiler first parses the schema itself, then converts the AST to something GraphQL.js can use, in practice you could generate the schema and then feed it into GraphQL Java (DGS) by just saving it.
This is not a part of DGS (or the normal GraphQL specification)
Short answer: No. |
Beta Was this translation helpful? Give feedback.
-
|
Yes, but it is not in the specification The transpiler is exactly what it says it is, it transpiles non-official syntax to official syntax by generating types. This is not implemented by GraphQL Java nor DGS, you will have to fork GraphQL Java and add support to the parser. You can write the types on your own, it really is not that much work x) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there someway to hack create a generic FilterField input type to support different types for value? Like String, Int, Uuid, etc.
Schema just needs to check out valid, even if it is a hack and not have newly curated functional implementation as I'm yet experimenting with dgs.
Just to support, I've found a transpiler GraphqlS2S Transpiler - Generic Types supporting js based impls.
I'm not able to find the link to resource but somewhere I saw implementation having
@genericdirective on extended/implemented types and its definitions.Can someone help me achieve this using some inheritance overriding possibility? Or should I just have some Java level mappings with Generic Comparator impl?
Beta Was this translation helpful? Give feedback.
All reactions