-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Hello, firstly thanks for this great gem — we've been using it for years and love it ❤️
I have these 3 class definitions in one file
module ProtectedIntrospection
class DynamicFields < GraphQL::Introspection::DynamicFields
field_class HideIntrospectionByContextBaseField
field :__typename, String, null: false
end
class EntryPoints < GraphQL::Introspection::EntryPoints
field_class HideIntrospectionByContextBaseField
field :__type, GraphQL::Introspection::TypeType do
argument :name, String
end
end
class SchemaType < GraphQL::Introspection::SchemaType
extend HideIntrospectionByContext
end
endGraphQL/OrderedFields cop wants to move the __type field to the topmost class like this:
module ProtectedIntrospection
class DynamicFields < GraphQL::Introspection::DynamicFields
field_class HideIntrospectionByContextBaseField
field :__type, GraphQL::Introspection::TypeType do
argument :name, String
end
field :__typename, String, null: false
end
class EntryPoints < GraphQL::Introspection::EntryPoints
field_class HideIntrospectionByContextBaseField
end
class SchemaType < GraphQL::Introspection::SchemaType
extend HideIntrospectionByContext
end
endReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working