How to use the @orbit/data.isQueryable function in @orbit/data

To help you get started, we’ve selected a few @orbit/data examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github orbitjs / orbit / packages / @orbit / coordinator / src / strategies / event-logging-strategy.ts View on Github external
protected _sourceInterfaces(source: Source): string[] {
    let interfaces = ['transformable'];
    if (isPullable(source)) {
      interfaces.push('pullable');
    }
    if (isPushable(source)) {
      interfaces.push('pushable');
    }
    if (isQueryable(source)) {
      interfaces.push('queryable');
    }
    if (isSyncable(source)) {
      interfaces.push('syncable');
    }
    if (isUpdatable(source)) {
      interfaces.push('updatable');
    }
    return interfaces;
  }