graphql

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UserInfo

func UserInfo(session *req.Req) (string, string)

UserInfo will grab the users name and email from the makeschool GraphQL API

Types

type Info

type Info struct {
	Data struct {
		CurrentUser struct {
			Name         string `json:"name"`
			StudentEmail string `json:"studentEmail"`
		} `json:"currentUser"`
	} `json:"data"`
}

Info represents the json struct that we get back from Make School.

Jump to

Keyboard shortcuts

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