graph

package
v0.0.0-...-7a34a31 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Graph

type Graph struct {
	Movies      []*models.Movie
	QueryString string
	Config      graphql.SchemaConfig
	// contains filtered or unexported fields
}

Graph is the type for our graphql operations

func New

func New(movies []*models.Movie) *Graph

New is the factory method to create a new instance of a Graph type

func (*Graph) Query

func (g *Graph) Query() (*graphql.Result, error)

Jump to

Keyboard shortcuts

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