graphql

package
v0.0.0-...-6110840 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ResultUsers = gql.NewObject(gql.ObjectConfig{
	Name: "results",
	Fields: gql.Fields{
		"id": &gql.Field{
			Type: gql.Int,
		},
		"name": &gql.Field{
			Type: gql.String,
		},
		"email": &gql.Field{
			Type: gql.String,
		},
		"password": &gql.Field{
			Type: gql.String,
		},
		"dateofbirth": &gql.Field{
			Type: gql.String,
		},
		"phoneNumber": &gql.Field{
			Type: gql.String,
		},
		"currentAddress": &gql.Field{
			Type: gql.String,
		},
		"city": &gql.Field{
			Type: gql.String,
		},
		"province": &gql.Field{
			Type: gql.String,
		},
		"district": &gql.Field{
			Type: gql.String,
		},
	},
})

ResultUsers fields

View Source
var User = gql.NewObject(gql.ObjectConfig{
	Name: "User",
	Fields: gql.Fields{
		"id": &gql.Field{
			Type: gql.Int,
		},
		"name": &gql.Field{
			Type: gql.String,
		},
		"email": &gql.Field{
			Type: gql.String,
		},
		"password": &gql.Field{
			Type: gql.String,
		},
		"dateofbirth": &gql.Field{
			Type: gql.String,
		},
		"phoneNumber": &gql.Field{
			Type: gql.String,
		},
		"currentAddress": &gql.Field{
			Type: gql.String,
		},
		"city": &gql.Field{
			Type: gql.String,
		},
		"province": &gql.Field{
			Type: gql.String,
		},
		"district": &gql.Field{
			Type: gql.String,
		},
	},
})

User type

View Source
var Users = gql.NewObject(gql.ObjectConfig{
	Name: "Users",
	Fields: gql.Fields{
		"results": &gql.Field{
			Type: gql.NewList(ResultUsers),
		},
		"page": &gql.Field{
			Type: gql.Int,
		},
	},
})

Users type

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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