buildQuery method

RqlQuery buildQuery(
  1. RqlQuery initialQuery,
  2. Map params
)

Implementation

RqlQuery buildQuery(RqlQuery initialQuery, Map params) {
  params['broadcast'] = params.containsKey('broadcast')
      ? params['broadcast']
      : (listenForChanges != true);

  var q = _getQueryInner(initialQuery, params);

  if (params.containsKey('reql') == true && params['reql'] is QueryCallback) {
    q = params['reql'](q) as RqlQuery;
  }

  return q;
}