Documentation
¶
Index ¶
- Variables
- func Build(topics *[]func() *SchemaTopic) (*gql.Schema, error)
- func DateTimeScalar() *gql.Scalar
- func NewConnection(config ConnectionConfig) *gql.Object
- func NewEdge(config EdgeConfig) *gql.Object
- func NodeInterface() *gql.Interface
- func PageInfoType() *gql.Object
- func Topics(topics ...func() *SchemaTopic) *[]func() *SchemaTopic
- type ConnectionConfig
- type EdgeConfig
- type InitTopic
- type SchemaTopic
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RootQuery = "Query" RootMutation = "Mutation" RootSubscription = "Subscription" RootQueryDescription = "The query root." RootMutationDescription = "The mutation root." RootSubscriptionDescription = "The subscription root." )
View Source
var ( EdgesDesc = "A list of edges." NodesDesc = "A list of nodes." PageInfoDesc = "Information to aid in pagination." TotalCountDesc = "Identifies the total count of items in the connection." )
View Source
var ( CursorDesc = "A cursor for use in pagination." NodeDesc = "The item at the end of the edge." )
Functions ¶
func Build ¶
func Build(topics *[]func() *SchemaTopic) (*gql.Schema, error)
This is the entry for building a whole schema.
func DateTimeScalar ¶
func NewConnection ¶
func NewConnection(config ConnectionConfig) *gql.Object
func NewEdge ¶
func NewEdge(config EdgeConfig) *gql.Object
func NodeInterface ¶
func PageInfoType ¶
func Topics ¶
func Topics(topics ...func() *SchemaTopic) *[]func() *SchemaTopic
Shortcut for *[]func() *
Types ¶
type ConnectionConfig ¶
type EdgeConfig ¶
type InitTopic ¶
type InitTopic interface {
InitTopic() func() *SchemaTopic
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.