Features
-
add parser recursion limit API - SimonSapin, pull/353, issue/296
Calling
ApolloCompiler::with_recursion_limit
instead ofApolloCompiler::new
makes the compiler configure the corresponding parser limit.
This limit protects against stack overflow and is enabled either way.
Configuring it may be useful for example if you’re also configuring the stack size. -
expose the repeatable attribute on
DirectiveDefinition
- allancalix, pull/367There was previously no way to access the
repeatable
field on theDirectiveDefinition
type.
This field is required for validation rules. -
add type extensions - SimonSapin, pull/369
apollo-compiler now partially supports GraphQL
extend
types. Theis_subtype
query takes
extensions into account.Some other parts of the compiler, like validation, do not yet support extensions.
Fixes
-
fix
@include
allowed directive locations - allancalix, pull/366The locations for the
@include
directive wrongly specifiedFragmentDefinition
instead ofFragmentSpread
.
It now matches the spec.
Maintenance
- avoid double lookup in
SchemaDefinition::{query,mutation,subscription}
- SimonSapin, pull/364