Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/graphql_devise/types/mutation_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module GraphqlDevise
module Types
class MutationType < GraphQL::Schema::Object
field_class GraphqlDevise::Types::BaseField if Gem::Version.new(GraphQL::VERSION) >= Gem::Version.new('2.0')
has_no_fields(true) if respond_to?(:has_no_fields)
end
end
end
1 change: 1 addition & 0 deletions lib/graphql_devise/types/query_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module GraphqlDevise
module Types
class QueryType < GraphQL::Schema::Object
field_class GraphqlDevise::Types::BaseField if Gem::Version.new(GraphQL::VERSION) >= Gem::Version.new('2.0')
has_no_fields(true) if respond_to?(:has_no_fields)
end
end
end