Module: ElasticGraph::GraphQL::QueryAdapter::Filters::NilFocusedSet
- Included in:
- ExcludesNilSet, IncludesNilSet
- Defined in:
- lib/elastic_graph/graphql/query_adapter/filters.rb
Overview
Mixin for use with our set implementations that only care about if ‘nil` is an included value or not.
Instance Method Summary collapse
Instance Method Details
#intersection(other) ⇒ Object
122 123 124 |
# File 'lib/elastic_graph/graphql/query_adapter/filters.rb', line 122 def intersection(other) (includes_nil? && other.includes_nil?) ? IncludesNilSet : ExcludesNilSet end |
#union(other) ⇒ Object
118 119 120 |
# File 'lib/elastic_graph/graphql/query_adapter/filters.rb', line 118 def union(other) (includes_nil? || other.includes_nil?) ? IncludesNilSet : ExcludesNilSet end |