Class: OGMNeoWhere

OGMNeoWhere(propertyopt, filter)

new OGMNeoWhere(propertyopt, filter)

Constructs a where object with an label.
Parameters:
Name Type Attributes Description
property string <optional>
Name of the property that the filter will be applied.
filter object Filter that will be applied. Example: {$eq: 'v'}. Possible filters are: $eq(equals), $lt(lessThan),$lte(lessThanOrEqual), $gt(greaterThan), $gte(greaterThanOrEqual), $ne(not equals) and for string properties $regex, $startswith, $endswith and $contains.
Source:

Members

clause :string

The cypher representation of the where clause.
Type:
  • string
Source:

Methods

(static) create(propertyopt, filter) → {OGMNeoWhere}

Convenience method that creates a where object with an property and a filter.
Parameters:
Name Type Attributes Description
property string <optional>
Name of the property that the filter will be applied.
filter object Filter that will be applied. Example: {$eq: 'v'}. Possible filters are: $eq(equals), $lt(lessThan),$lte(lessThanOrEqual), $gt(greaterThan), $gte(greaterThanOrEqual), $ne(not equals) and for string properties $regex, $startswith, $endswith and $contains.
Source:
Returns:
Created query with label.
Type
OGMNeoWhere

and(property, filter) → {OGMNeoWhere}

Add AND filter constraint to this query object.
Parameters:
Name Type Description
property string Name of the property that the filter will be applied.
filter object Filter that will be applied. Example: {$eq: 'v'}. Possible filters are: $eq(equals), $lt(lessThan),$lte(lessThanOrEqual), $gt(greaterThan), $gte(greaterThanOrEqual), $ne(not equals) and for string properties $regex, $startswith, $endswith and $contains
Source:
Returns:
This instance of query.
Type
OGMNeoWhere

or(property, filter) → {OGMNeoWhere}

Add OR filter constraint to this query object.
Parameters:
Name Type Description
property string Name of the property that the filter will be applied.
filter object Filter that will be applied. Example: {$eq: 'v'}. Possible filters are: $eq(equals), $lt(lessThan),$lte(lessThanOrEqual), $gt(greaterThan), $gte(greaterThanOrEqual), $ne(not equals) and for string properties $regex, $startswith, $endswith and $contains
Source:
Returns:
This instance of query.
Type
OGMNeoWhere

OGMNeoWhere()

new OGMNeoWhere()

Source:

Members

clause :string

The cypher representation of the where clause.
Type:
  • string
Source:

Methods

(static) create(propertyopt, filter) → {OGMNeoWhere}

Convenience method that creates a where object with an property and a filter.
Parameters:
Name Type Attributes Description
property string <optional>
Name of the property that the filter will be applied.
filter object Filter that will be applied. Example: {$eq: 'v'}. Possible filters are: $eq(equals), $lt(lessThan),$lte(lessThanOrEqual), $gt(greaterThan), $gte(greaterThanOrEqual), $ne(not equals) and for string properties $regex, $startswith, $endswith and $contains.
Source:
Returns:
Created query with label.
Type
OGMNeoWhere

and(property, filter) → {OGMNeoWhere}

Add AND filter constraint to this query object.
Parameters:
Name Type Description
property string Name of the property that the filter will be applied.
filter object Filter that will be applied. Example: {$eq: 'v'}. Possible filters are: $eq(equals), $lt(lessThan),$lte(lessThanOrEqual), $gt(greaterThan), $gte(greaterThanOrEqual), $ne(not equals) and for string properties $regex, $startswith, $endswith and $contains
Source:
Returns:
This instance of query.
Type
OGMNeoWhere

or(property, filter) → {OGMNeoWhere}

Add OR filter constraint to this query object.
Parameters:
Name Type Description
property string Name of the property that the filter will be applied.
filter object Filter that will be applied. Example: {$eq: 'v'}. Possible filters are: $eq(equals), $lt(lessThan),$lte(lessThanOrEqual), $gt(greaterThan), $gte(greaterThanOrEqual), $ne(not equals) and for string properties $regex, $startswith, $endswith and $contains
Source:
Returns:
This instance of query.
Type
OGMNeoWhere