Module: GraphQL::Schema::Member::Scoped Private
- Included in:
- Interface::DefinitionMethods, GraphQL::Schema::Member
- Defined in:
- lib/graphql/schema/member/scoped.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
-
#scope_items(items, context) ⇒ Object
private
This is called when a field has
scope: true
.
Instance Method Details
#scope_items(items, context) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This is called when a field has scope: true
.
The field’s return type class receives this call.
By default, it’s a no-op. Override it to scope your objects.
15 16 17 |
# File 'lib/graphql/schema/member/scoped.rb', line 15 def scope_items(items, context) items end |