How to use the @orbit/data.deserializeRecordIdentity 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 / indexeddb / src / indexeddb-cache.ts View on Github external
protected _fromInverseRelationshipForIDB(
    ir: InverseRelationshipForIDB
  ): RecordRelationshipIdentity {
    return {
      record: deserializeRecordIdentity(ir.recordIdentity),
      relatedRecord: deserializeRecordIdentity(ir.relatedIdentity),
      relationship: ir.relationship
    };
  }
}
github orbitjs / orbit / packages / @orbit / indexeddb / src / indexeddb-cache.ts View on Github external
protected _fromInverseRelationshipForIDB(
    ir: InverseRelationshipForIDB
  ): RecordRelationshipIdentity {
    return {
      record: deserializeRecordIdentity(ir.recordIdentity),
      relatedRecord: deserializeRecordIdentity(ir.relatedIdentity),
      relationship: ir.relationship
    };
  }
}