Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
*
GenEnum generates MarshalGraphQL and UnmarshalGraphQL for enum types ```` type MyEnum string const ( MyEnumValueA = MyEnum("value_a") MyEnumValueB = MyEnum("value_b") ) ```` This generates GraphQL enum MyEnum { ValueA ValueB } by go-gen-graphql-schema and and MyEnum is supposed to implement `MarshalGraphQL` and `UnmarshalGraphQL` to convert ValueA/ValueB to go constants MyEnumValueA/MyEnumValueB and vice versa. gqlgen-enum can be used to generate these methods so you don't have to write marshaler/unmarshaler by yourselve.
Types ¶
Click to show internal directories.
Click to hide internal directories.