Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGraphQLObject ¶
GetGraphQLObject Converts struct into graphql object
Types ¶
type SchemaBuilder ¶
type SchemaBuilder struct { GraphQLType graphql.Output Object interface{} Schema graphql.Fields // contains filtered or unexported fields }
SchemaBuilder is used to build a schema based on a struct
func NewSchemaBuilder ¶
func NewSchemaBuilder(graphQLType graphql.Output, object interface{}) *SchemaBuilder
NewSchemaBuilder is used get a new schema builder
func (*SchemaBuilder) AddFunction ¶
func (schemaBuilder *SchemaBuilder) AddFunction( name, description string, function func(graphql.ResolveParams) (interface{}, error))
AddFunction adds a function
Click to show internal directories.
Click to hide internal directories.