Documentation ¶
Index ¶
- Constants
- func GetDefaultStringValueForType(name string) (string, error)
- func IsArray(name string) bool
- func IsDgraphType(name string) bool
- func SchemaDefToGoDef(def *ast.Definition) (pkgPath string, typeName string, err error)
- func SchemaLoaderFromExternal(host string) (*ast.Schema, error)
- func SchemaLoaderFromFile(path string) (*ast.Schema, error)
- type GoTypeDefinition
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 IsDgraphType ¶
func SchemaDefToGoDef ¶
func SchemaDefToGoDef(def *ast.Definition) (pkgPath string, typeName string, err error)
Types ¶
type GoTypeDefinition ¶
Click to show internal directories.
Click to hide internal directories.