Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UUID = graphql.NewScalar(graphql.ScalarConfig{ Name: "UUID", Description: "The UUID scalar to check string is UUID format", Serialize: coerceUUID, ParseValue: coerceUUID, ParseLiteral: func(valueAST ast.Value) interface{} { switch valueAST := valueAST.(type) { case *ast.StringValue: if uuid, err := uuid.FromString(valueAST.Value); err == nil { return uuid.String() } } return nil }, })
Functions ¶
func GetSelectedFields ¶
func GetSelectedFields(params graphql.ResolveParams) (map[string]interface{}, error)
* GetSelectedFields Read the requested fields in Resolve Ref: https://github.com/graphql-go/graphql/issues/125, https://github.com/graphql-go/graphql/issues/157
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.