example

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const HTTPTimeoutSec = 2
View Source
const METHOD = "POST"
View Source
const MUTATION = `mutation ($input: CreatePostInput!) {
	createPost(input: $input) {
	  id
	  title
	  body
	}
}`
View Source
const QUERY = `query {
	post(id: 1) {
	  id
	  title
	  body
	}
  }`
View Source
const URL_GQL = "" // Your test url

Variables

View Source
var MUTATION_INPUT = struct {
	Title string `json:"title,omitempty"`
	Body  string `json:"body,omitempty"`
}{
	Title: "New Post Title",
	Body:  "Some interesting content.",
}

Functions

func Mutation

func Mutation()

func Query

func Query()

Types

This section is empty.

Jump to

Keyboard shortcuts

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