Skip to content

Commit 6d0b949

Browse files
committed
Add deprecation warning to GraphQL::Filter
1 parent a04428f commit 6d0b949

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/graphql/filter.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module GraphQL
33
# @api private
44
class Filter
55
def initialize(only: nil, except: nil)
6+
GraphQL::Deprecation.warn("GraphQL::Filter is deprecated and will be removed in v2.1.0. Implement `visible?` on your schema members instead (https://graphql-ruby.org/authorization/visibility.html).")
67
@only = only
78
@except = except
89
end

0 commit comments

Comments
 (0)