- Added scalar type alias support (#225, #210). For more info see the "Scalar Type Alias" section of documentation.
- Greatly improved
AstVisitor (#214). It now includes helper methods to traverse and transform an AST with type info and state. Sangria now integrates with macro-visit which was specifically written to traverse and transform ASTs which are similar to sangria's. For more info see the "AstVisitor" section of documentation.
SchemaBasedDocumentAnalyzer that contain a lot of helper methods to analyze query. This includes newly introduced
introspectionUsages (#211, #207, #212). For more info see brand new "Query And Schema Analysis" section of documentation.
QueryReducer.rejectIntrospection that rejects queries which contain introspection fields (#211). This may be useful for production environments where introspection can potentially be abused.
sangria.introspection.isIntrospection helper methods to easily distinguish between introspection types and fields in middleware and query reducers.
QueryReducer.rejectMaxDepth rejects queries that are deeper than provided threshold (In contrast to
Executor.execute(maxQueryDepth = ...), query reducer does it at query analysis time before actual execution).
derive* macro settings (
TransformInputFieldNames) to transform field names. (#215) Big thanks to @ostronom for this contribution.
- Added ability to represent complex relations in Fetch API (#220).
ExecutionScheme.Extended now returns updated user context for mutations (#209).
- Improved handling of tailing comments when rendering query AST (#219).
- Added aliases for
Vector instead of
List for all AST nodes now. This is a minor breaking change.
Press h to open a hovercard with more details.