Method: GraphQL::Schema::Member::Scoped#scope_items
- Defined in:
- lib/graphql/schema/member/scoped.rb
#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 |