Module: Graphiti::ActiveGraph::Extensions::QueryDsl::Performer
- Included in:
- Scoping::Filter
- Defined in:
- lib/graphiti/active_graph/extensions/query_dsl/performer.rb
Instance Attribute Summary collapse
-
#skip_arrow_cypher_rels ⇒ Object
Returns the value of attribute skip_arrow_cypher_rels.
-
#with_vars ⇒ Object
Returns the value of attribute with_vars.
Instance Method Summary collapse
Instance Attribute Details
#skip_arrow_cypher_rels ⇒ Object
Returns the value of attribute skip_arrow_cypher_rels.
3 4 5 |
# File 'lib/graphiti/active_graph/extensions/query_dsl/performer.rb', line 3 def skip_arrow_cypher_rels @skip_arrow_cypher_rels end |
#with_vars ⇒ Object
Returns the value of attribute with_vars.
3 4 5 |
# File 'lib/graphiti/active_graph/extensions/query_dsl/performer.rb', line 3 def with_vars @with_vars end |
Instance Method Details
#apply_query_dsl ⇒ Object
5 6 7 8 |
# File 'lib/graphiti/active_graph/extensions/query_dsl/performer.rb', line 5 def apply_query_dsl query_param = resource.context&.params&.[](:query) query_param.present? ? apply_query_param(query_param) : scope end |
#apply_query_param(query_param) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/graphiti/active_graph/extensions/query_dsl/performer.rb', line 10 def apply_query_param(query_param) @scope = query_generator.new(query_param, **query_generator_config).tap do |qg| qg.generate_functions_optional_match qg.generate_with_clause_partition_query qg.generate_match_query qg.generate_with_clause_query end.query end |