graphql

package
v0.8.20 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: GPL-3.0 Imports: 9 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 GetDefaultStringValueForType added in v0.8.13

func GetDefaultStringValueForType(name string) (string, error)

func IsArray

func IsArray(name string) bool

func IsDgraphType

func IsDgraphType(name string) bool

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
}

Jump to

Keyboard shortcuts

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