Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DMScalarType = graphql.NewScalar(graphql.ScalarConfig{ Name: "DMScalarType", Description: "Digimaker scalar type.", Serialize: func(value interface{}) interface{} { switch value := value.(type) { case fieldtypes.Json: return value default: return value } }, ParseValue: func(value interface{}) interface{} { switch value := value.(type) { case string: j := fieldtypes.Json{} j.Content = []byte(value) return j default: return nil } }, ParseLiteral: func(valueAST ast.Value) interface{} { switch valueAST := valueAST.(type) { case *ast.StringValue: return fieldtypes.Json{Content: []byte(valueAST.Value)} default: return nil } }, })
Digimaker scalar type
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.