Module: GraphitiGql::ActiveRecordManyToManyExtras
- Defined in:
- lib/graphiti_gql/graphiti_hax.rb
Instance Method Summary collapse
-
#belongs_to_many_filter(scope, value) ⇒ Object
flipping .includes to .joins.
Instance Method Details
#belongs_to_many_filter(scope, value) ⇒ Object
flipping .includes to .joins
535 536 537 538 539 |
# File 'lib/graphiti_gql/graphiti_hax.rb', line 535 def belongs_to_many_filter(scope, value) scope .joins(through_relationship_name) .where(belongs_to_many_clause(value, type)) end |