EctoNeo4j v0.6.3 Ecto.Adapters.Neo4j.QueryMapper View Source

Mapper that converts an Ecto.Query struct into a Ecto.Adapters.Neo4j.Query one.

Link to this section Summary

Functions

Map Ecto.Query to Ecto.Adapters.Neo4j.Query

Map EctoQuery distinct clause to a Neo4j.Query compliant one.

Converts EctoQuery.sources into an Ecto.Adapters.Neo4j.Query compliant list of NodeExpr which would be used in MATCH

Map join into Neo4j.Query compliant relationship query.

Map EctoQuery.limit to Neo4j.Query compliant ones.

Map EctoQuery.order_bys to Neo4j.Query compliant value to be used in SKIP.

Map EctoQuery.order_bys to Neo4j.Query compliant ones.

Produce a Neo4j.Query to retrieve relationship (mapping of the ecto preload operation)

Map Ecto.Query.select to Neo4j.Query list of return (nodes, relationships o fields) which will be used in RETURN

Map EctoQuery.updates to Neo4j.Query list of Sets which will be used in SETs.§

Map EctoQuery.wheres to Neo4j.Condition which will used to build WHERE clauses.

Link to this section Functions

Link to this function

map(operation, query, unbound_params, opts) View Source

Map Ecto.Query to Ecto.Adapters.Neo4j.Query

Link to this function

map_distinct(arg1) View Source
map_distinct(nil | map()) :: boolean()

Map EctoQuery distinct clause to a Neo4j.Query compliant one.

Converts EctoQuery.sources into an Ecto.Adapters.Neo4j.Query compliant list of NodeExpr which would be used in MATCH

Map join into Neo4j.Query compliant relationship query.

on will be used to define filters.

Note that every realtionship filters have to be specified as on clauses

Link to this function

map_limit(arg1) View Source
map_limit(nil | map()) :: nil | integer()

Map EctoQuery.limit to Neo4j.Query compliant ones.

Link to this function

map_offset(arg1) View Source
map_offset(nil | map()) :: nil | integer()

Map EctoQuery.order_bys to Neo4j.Query compliant value to be used in SKIP.

Map EctoQuery.order_bys to Neo4j.Query compliant ones.

Link to this function

map_preload(operation, query, unbound_params, opts) View Source

Produce a Neo4j.Query to retrieve relationship (mapping of the ecto preload operation)

Link to this function

map_query(operation, query, unbound_params, opts) View Source

Map a non-preload Ecto.Query to Ecto.Adapters.Neo4j.Query

Map Ecto.Query.select to Neo4j.Query list of return (nodes, relationships o fields) which will be used in RETURN

Link to this function

map_update(query_expr, unbound_params, clauses) View Source
map_update(map(), map(), %{
  params: map(),
  set: [Ecto.Adapters.Neo4j.Query.SetExpr.t()]
}) :: %{params: map(), set: [Ecto.Adapters.Neo4j.Query.SetExpr.t()]}

Map EctoQuery.updates to Neo4j.Query list of Sets which will be used in SETs.§

Link to this function

map_where(expression, unbound_params, clauses) View Source
map_where([map()] | map(), map(), %{
  params: map(),
  where: Ecto.Adapters.Neo4j.Condition.t()
}) :: %{params: map(), where: Ecto.Adapters.Neo4j.Condition.t()}

Map EctoQuery.wheres to Neo4j.Condition which will used to build WHERE clauses.