graphql

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SchemaInputs = `` /* 2303-byte string literal not displayed */

	DirectiveDefs = `` /* 1085-byte string literal not displayed */

	// see: https://www.apollographql.com/docs/federation/gateway/#custom-directive-support
	// So, we should only add type system directives here.
	// Even with type system directives, there is a bug in Apollo Federation due to which the
	// directives having non-scalar args cause issues in schema stitching in gateway.
	// See: https://github.com/apollographql/apollo-server/issues/3655
	// So, such directives have to be missed too.
	ApolloSupportedDirectiveDefs = `` /* 661-byte string literal not displayed */

	FilterInputs = `` /* 811-byte string literal not displayed */

	ApolloSchemaExtras = `` /* 334-byte string literal not displayed */

	ApolloSchemaQueries = `
extend type Query {
	_entities(representations: [_Any!]!): [_Entity]!
	_service: _Service!
}
`
)

Variables

This section is empty.

Functions

func IsArray

func IsArray(name string) bool

func IsDgraphType

func IsDgraphType(name string) bool

func SchemaDefToGo

func SchemaDefToGo(def *ast.Definition) (*goTypes.Package, error)

Not supported: PointList

func SchemaDefToGoDef

func SchemaDefToGoDef(def *ast.Definition) (pkgPath string, typeName string, err error)

func SchemaLoaderFromExternal

func SchemaLoaderFromExternal(host string) (*ast.Schema, error)

func SchemaLoaderFromFile

func SchemaLoaderFromFile(path string) (*ast.Schema, error)

Types

type GoTypeDefinition

type GoTypeDefinition struct {
	TypeName string
	PkgName  string
}

func SchemaTypeToGoType

func SchemaTypeToGoType(name string, astType *ast.Type) (*GoTypeDefinition, error)

Not supported: PointList

Jump to

Keyboard shortcuts

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