addon/query/indexeddb-adapter.js
function containsRelationships(query) {
  let contains = false;
  if (query.predicate instanceof SimplePredicate || query.predicate instanceof StringPredicate || query.predicate instanceof DatePredicate) {
    contains = Information.parseAttributePath(query.predicate.attributePath).length > 1;
  }

  if (query.predicate instanceof DetailPredicate) {
    return true;
  }

  if (query.predicate instanceof ComplexPredicate) {
    query.predicate.predicates.forEach((predicate) => {
      if (containsRelationships({ predicate })) {
        contains = true;
      }
    });
  }

  if (query.order) {
    for (let i = 0; i < query.order.length; i++) {
      let attributePath = query.order.attribute(i).name;
      if (Information.parseAttributePath(attributePath).length > 1) {
        contains = true;
      }
    }
  }

  return contains;
}
function containsRelationships(query) {
  let contains = false;
  if (query.predicate instanceof SimplePredicate || query.predicate instanceof StringPredicate || query.predicate instanceof DatePredicate) {
    contains = Information.parseAttributePath(query.predicate.attributePath).length > 1;
  }

  if (query.predicate instanceof DetailPredicate) {
    return true;
  }

  if (query.predicate instanceof ComplexPredicate) {
    query.predicate.predicates.forEach((predicate) => {
      if (containsRelationships({ predicate })) {
        contains = true;
      }
    });
  }

  if (query.order) {
    for (let i = 0; i < query.order.length; i++) {
      let attributePath = query.order.attribute(i).name;
      if (Information.parseAttributePath(attributePath).length > 1) {
        contains = true;
      }
    }
  }

  return contains;
}
function containsRelationships ( query ) { let contains = false ; if ( query . predicate instanceof SimplePredicate || query . predicate instanceof StringPredicate || query . predicate instanceof DatePredicate ) { contains = Information . parseAttributePath ( query . predicate . attributePath ) . length > 1 ; } if ( query . predicate instanceof DetailPredicate ) { return true ; } if ( query . predicate instanceof ComplexPredicate ) { query . predicate . predicates . forEach ( ( predicate ) => { if ( containsRelationships ( { predicate } ) ) { contains = true ; } } ) ; } if ( query . order ) { for ( let i = 0 ; i < query . order . length ; i ++ ) { let attributePath = query . order . attribute ( i ) . name ; if ( Information . parseAttributePath ( attributePath ) . length > 1 ) { contains = true ; } } } return contains ; }
Checks query on contains restrictions by relationships.

@method containsRelationships
@param {QueryObject} query
@return {Boolean}
Checks query on contains restrictions by relationships .