What is the problem the enhancement will solve?
After upgrading to graphql_devise 0.18.0 I am getting the following deprecation message from graphql 1.13.10:
Legacy `.graphql_definition` objects are deprecated and will be removed in GraphQL-Ruby 2.0. Remove `.graphql_definition` to use a class-based definition instead.
Called on #<Types::BaseField Query.myquery(...): [Mytype!]!> from:
/Users/jan/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/graphql_devise-0.18.0/lib/graphql_devise/schema_plugin.rb:116:in `authenticate_option'
/Users/jan/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/graphql_devise-0.18.0/lib/graphql_devise/schema_plugin.rb:30:in `trace'
Context
I set up our Schema like so
class MyServerSchema < GraphQL::Schema
use GraphqlDevise::SchemaPlugin.new(
query: Types::QueryType,
mutation: Types::MutationType,
public_introspection: true,
resource_loaders: [
GraphqlDevise::ResourceLoader.new(User,
only: %i[login logout register update_password_with_token
send_password_reset_with_token])
]
)
mutation(Types::MutationType)
query(Types::QueryType)
Describe the solution you have in mind
Not sure π. Judging from the deprecation message, we could simply remove the call to .graphql_definition π€...
Describe alternatives you've considered
To have less noise on our test logs, I might choose to downgrade again...
Additional context
Please let me know, if you need more details.
What is the problem the enhancement will solve?
After upgrading to
graphql_devise 0.18.0I am getting the following deprecation message fromgraphql 1.13.10:Context
I set up our
Schemalike soDescribe the solution you have in mind
Not sure π. Judging from the deprecation message, we could simply remove the call to
.graphql_definitionπ€...Describe alternatives you've considered
To have less noise on our test logs, I might choose to downgrade again...
Additional context
Please let me know, if you need more details.