uuid icon indicating copy to clipboard operation
uuid copied to clipboard

implement graphql UnmarshalGQL/MarshalGQL funcs

Open farwydi opened this issue 5 years ago • 1 comments

For easy integration with https://github.com/99designs/gqlgen

farwydi avatar Feb 21 '20 15:02 farwydi

Sorry for the delay. I have a concern about adding every possible marshaling function to this package. While the code is not great in size, there are a number of other marshaling interface types as well. There have been other marshalers also requested. I am concerned about opening the flood gates and having a large number of these get added. It seems like the better idea would be for the gqlgen package to be able to use the MarshalText interface for types that do not directly implement MarshalGQL. This is how JSON marshals uuids without requiring the JSON specific methods.

pborman avatar Mar 12 '20 01:03 pborman