Release notes for various versions of RSpec::GraphQLResponse
See the upgrade guide for details on changes between versions and how to upgrade.
- Fully deprecates
operation
. - Renames
have_operation
tohave_field
to clarify its use.
The helper graphql_query
was renamed to graphql_operation
to better communicate the use of the helper. Naming the helper with _query
lead to an association that its use was meant for GraphQL query operations and could not also be used for a mutation.
Misc changes and corrections, some new features, and generally trying to create a more robust and usable experience, right out of the box.
- Significantly improved documentation
have_operation
matcher- GraphQL configuration DSL
graphql_query
graphql_variables
graphql_context
- Describe/Context level RSpec helper methods via
.add_context_helper
DSL
This release changes the graphql query, variables and context configuration away from let
vars
and into a proper DSL.
Lots of misc bug fixes, including caching of values, ensuring things work in nested contexts, etc.
Early beta work to get this out the door and begin adoption
have_errors
matcheroperation
helperresponse
helperexecute_graphql
helper- DSL for adding custom matchers, validators, and helpers