Hello,
Deprecation warnings starting graphql-1.13.1:
Legacy `.to_graphql` objects are deprecated and will be removed in GraphQL-Ruby 2.0. Remove `.to_graphql` to use a class-based definition instead.
Called on #<GraphQL::Schema::Field Query.posts(...): [Post!]!> from:
graphql-guard/lib/graphql/guard/testing.rb:29:in `field_with_guard'
.....
From changelog
.to_graphql and .graphql_definition are deprecated and will be removed in GraphQL-Ruby 2.0.
All features using those legacy definitions are already removed
and all behaviors should have been ported to class-based definitions.
So, you should be able to remove those calls entirely.
Please open an issue if you have trouble with it! #3750 #3765
Also I noticed, that inline guards return Array wrapped guard Proc and not just proc right away. Is this intended outcome in graphql or some undesired behaviour - I don't know, should investigate more.
Hello,
Deprecation warnings starting graphql-1.13.1:
From changelog
Also I noticed, that inline guards return Array wrapped guard Proc and not just proc right away. Is this intended outcome in graphql or some undesired behaviour - I don't know, should investigate more.