Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Varchar = graphql.NewScalar(graphql.ScalarConfig{ Name: "Varchar", Description: "The `Varchar` scalar type represents textual data, represented as UTF-8 " + "character sequences. The String type is most often used by GraphQL to " + "represent free-form human-readable text.", Serialize: func(value interface{}) interface{} { switch value := value.(type) { case pgtype.Varchar: return value.Get() default: return nil } }, ParseValue: func(value interface{}) interface{} { switch value := value.(type) { case string: var v pgtype.Varchar v.Set(value) return v case *string: var v pgtype.Varchar v.Set(*value) return v default: return nil } }, ParseLiteral: func(valueAST ast.Value) interface{} { switch valueAST := valueAST.(type) { case *ast.StringValue: var v pgtype.Varchar v.Set(valueAST.Value) return v } return nil }, })
Varchar pgtype string for graphql
Functions ¶
func AddSinkMutationField ¶
AddSinkMutationField for adding a new sink
func DelSinkMutationField ¶
DelSinkMutationField returns the field to delete a sink
func GetSinksQueryField ¶
GetSinksQueryField for querying multiple users
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.