types

package
v0.0.0-...-99ad327 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UsersTypes = graphql.NewObject(graphql.ObjectConfig{
	Name: "Users",
	Fields: graphql.Fields{
		"id": &graphql.Field{
			Type: graphql.String,
		},
		"name": &graphql.Field{
			Type: graphql.String,
		},
		"age": &graphql.Field{
			Type: graphql.Int,
		},
		"profession": &graphql.Field{
			Type: graphql.String,
		},
		"friendly": &graphql.Field{
			Type: graphql.String,
		},
	},
})

Functions

This section is empty.

Types

type Users

type Users struct {
	Id         string `json:"id,omitempty"`
	Name       string `json:"name"`
	Age        int    `json:"age"`
	Profession string `json:"profession"`
	Friendly   string `json:"friendly"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL