graphql-guard v2.0.0 Release Notes
Release Date: 2020-04-20 // almost 5 years ago-
- ๐
Added
: support forgraphql
gem version>= 1.10
withInterpreter
. #39 - ๐
Removed
: support for previousgraphql
gem versions. #39
๐ฅ Breaking changes:
- ๐ Requires using
graphql
gem version>= 1.10.0
with Interpreter.
Before:
class Schema < GraphQL::Schema query QueryType mutation MutationType use GraphQL::Guard.new end
After:
class Schema < GraphQL::Schema use GraphQL::Execution::Interpreter use GraphQL::Analysis::AST query QueryType mutation MutationType use GraphQL::Guard.new end
- ๐ Use the actual type in the Policy object without
type.metadata[:type_class]
.
Before (with
graphql
gem version>= 1.8
and class-based type definitions):class GraphqlPolicy def self.guard(type, field) RULES.dig(type.metadata[:type_class], field) end end
After:
class GraphqlPolicy def self.guard(type, field) RULES.dig(type, field) end end
- ๐
Previous changes from v1.3.1
-
- ๐
Fixed
: compatibility withgraphql
gem version 1.10. #36
- ๐