$k. QueryReference

new QueryReference()

References another query that selects elements of this query according to the operator. If $k.Operator.EQUAL or NOT_EQUAL are selected, then the reference works in both directions. If $k.Operator.FILTER is selected, then the subquery is only applied to this query.

Extends

Methods

alternativesId() → {number}

Since
  • 4.1.0
Deprecated
  • This function is not supported any more
Returns:
Type: 
number

linkedQuery() → {$k.StructuredQuery}

Returns the linked subquery

Since
  • 4.1.0
Returns:
Type: 
$k.StructuredQuery

operator() → {string}

Returns the comparison operator

Since
  • 4.1.0
Returns:
Type: 
string

parameter() → {string}

Returns the parameter name of the condition, if defined

Since
  • 4.1.0
Returns:
Type: 
string

query() → {$k.StructuredQuery}

Version
  • Experimental feature, might be removed at any time
Since
  • 5.4.2
Returns:

The source query

Type: 
$k.StructuredQuery

setOperator(operator)

Sets the comparison operator

Parameters:
NameTypeDescription
operatorstring
Since
  • 4.1.0

setParameter(parameter)

Sets the parameter name of the condition

Parameters:
NameTypeDescription
parameterstring
Since
  • 4.1.0