sangria v0.7.0 Release Notes

Release Date: 2016-06-12 // almost 8 years ago
    • ๐ŸŽ‰ Initial CATs (Compatibility Acceptance Tests) support (#142). The test suite itself is still work-in-progress, but sangria includes an integration which executes all currently available test cases.
    • ๐Ÿ“œ IDL (schema definition) syntax parsing and rendering (#137, #62)
    • โœ… AST-based schema materializer (#139, #115). This feature may be very useful for different tools that need to create an executable schema based on IDL definitions. Almost any aspect of generated in-memory schema representation can be customized via custom implementation of AstSchemaBuilder. This feature is already used in sangria itself for CATs (Compatibility Acceptance Tests) integration. At the moment default implementation of AstSchemaBuilder treats comments that start with ## as a field/object/argument description.
    • Partial resolve Actions (#140). This change introduces 2 new Actions that can be returned back from a resolve function: PartialValue and PartialFutureValue. This allows you to return a list of errors in addition to a successfully resolved value (which may contain only partial result due to the errors).
    • ๐Ÿ“œ Preserve comments during the AST parsing (#105). Most of the AST classes got comment Option[Comment] field. It can be very useful for query formatting because QueryRenderer also got support for comments and able to render them.
    • ๐Ÿšš Include execution path in error objects (#143). This may be helpful for client side tools that would like to analyze error messages and programmatically use them in some way. This is a minor braking change since field property on error is removed in favor of new path property which is a list.
    • ๐Ÿšš Introspection-based schema materializer now also uses more advanced IntrospectionSchemaBuilder (similar to the AST-based one) instead of MaterializationLogic, which is now removed. This introduces a minor breaking change, but in a long run IntrospectionSchemaBuilder will provide much more flexibility.
    • โž• Add comment/directive support in the introspection-based schema renderer (#136).
    • Validation: improving overlapping fields quality (#133)
    • ๐Ÿ—„ Deprecated directive (#132)
    • ๐Ÿ†• New directive locations (#131)
    • 0๏ธโƒฃ Default values should be in GraphQL format (introspection) (#141)
    • โž• Added support for case objects defined in companion object (#135). Big thanks to @joprice for contributing this improvement!
    • 0๏ธโƒฃ SchemaRenderer now has improved default value rendering
    • Execution path now got it's own class ExecutionPath (which is now used instead of simple Vector[String]). This introduces a minor breaking change.