Global Object Identification #411
Unanswered
lambrosx77
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a privileged way to resolve graphql best practices Global Object Identification with dgs?
https://graphql.org/learn/global-object-identification/
I'm using Postgresql with serials for my identifiers, I don't want uuid at this level. I'm loading datas using hibernate and repositories, everything work fine except that relay need global unique identifier.
I tried to customize Jackson with success for REST but without for dgs + graphql:
Or should I change my ids in the datafetchers using streams before sending it to relay? Or making a second field "guid" in my entities and using it in my schema? Should I use DTO? Or another way?
Same question to implement Node interface.
Could DGS implement those patterns?
Thank you for the advices.
Beta Was this translation helpful? Give feedback.
All reactions