bindgraphql: github.com/ariefrahmansyah/bindgraphql Index | Files | Directories

package bindgraphql

import "github.com/ariefrahmansyah/bindgraphql"

Index

Package Files

bind.go

func NewFields Uses

func NewFields(obj interface{}) (graphql.Fields, error)

NewFields returns new graphql.Fields that ready to be used by your graphql.Object.

graphFields, err := bind.NewFields(yourObj)
graphObj := graphql.NewObject(graphql.ObjectConfig{
	Name:   "YourObj",
	Fields: graphFields,
})

func NewObject Uses

func NewObject(name string, obj interface{}) (*graphql.Object, error)

NewObject returns new *graphql.Object instance.

graphObj, err := bind.NewObject("YourObj", yourObj)

Directories

PathSynopsis
example

Package bindgraphql imports 3 packages (graph) and is imported by 1 packages. Updated 2017-04-09. Refresh now. Tools for package owners.