Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MutationType = graphql.NewObject(graphql.ObjectConfig{ Name: "Mutation", Fields: graphql.Fields{ "createTask": &graphql.Field{ Type: TaskType, Args: graphql.FieldConfigArgument{ "name": &graphql.ArgumentConfig{ Type: graphql.NewNonNull(graphql.String), }, }, Resolve: usecase.CreateTask, }, }, })
View Source
var QueryType = graphql.NewObject(graphql.ObjectConfig{ Name: "Query", Fields: graphql.Fields{ "tasks": &graphql.Field{ Type: graphql.NewList(TaskType), Resolve: usecase.GetTasks, }, }, })
View Source
var TaskType = graphql.NewObject(graphql.ObjectConfig{ Name: "task", Fields: graphql.Fields{ "id": &graphql.Field{ Type: graphql.NewNonNull(graphql.ID), }, "name": &graphql.Field{ Type: graphql.NewNonNull(graphql.String), }, }, }, )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.