evaluator

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package evaluator contains the logic responsible for evaluating schema & query GraphQL Abstract Syntax Tree [AST]. It orchestrates the generation of the code by using visitor & generator packages.

Package evaluator contains the logic responsible for evaluating schema & query GraphQL Abstract Syntax Tree [AST]. It orchestrates the generation of the code by using visitor & generator packages.

Package evaluator contains the logic responsible for evaluating schema & query GraphQL Abstract Syntax Tree [AST]. It orchestrates the generation of the code by using visitor & generator packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdditionalInfo

type AdditionalInfo struct {
	PackageName string
	ClientName  string
	UsePointers bool
}

AdditionalInfo stores all optional arguments passed to grafikgen through CLI as flags.

type Evaluator

type Evaluator interface {
	Generate() io.WriterTo
}

Evaluator provides a contract for evaluator and is being used as a return type of New instead of a pointer.

func New

func New(schema *ast.Schema, queryDocument *ast.QueryDocument, additionalInfo AdditionalInfo) Evaluator

New function creates an instance of evaluator.

Jump to

Keyboard shortcuts

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