contrib
contrib copied to clipboard
entgql: experimental global-id support with relay-format (<type>:<id>)
An exmaple implementation for supporting the Relay Global ID format exists in https://github.com/graphql/graphql-relay-js/blob/main/src/node/node.ts
With errors:
@theprobugmaker running to the case he needs to encode UUID as Global ID with the Entity Number: <EntityNumber>\n<UUID>
.
I think there will be many different formats used, but it is consistent in the project. EntGQL should provide a template that allows to format it.
The user can write customs UnmarshalGQL/MarshalGQL functions to parse Type and ID from/to String.
@theprobugmaker running to the case he needs to encode UUID as Global ID with the Entity Number:
<EntityNumber>\n<UUID>
.I think there will be many different formats used, but it is consistent in the project. EntGQL should provide a template that allows to format it.
The user can write customs UnmarshalGQL/MarshalGQL functions to parse Type and ID from/to String.
That is right, thank you.