Skip to content

@data-client/[email protected]

Compare
Choose a tag to compare
@github-actions github-actions released this 26 Jul 11:56
· 134 commits to master since this release
2aaf110

Patch Changes

  • #3165 3fa9eb9 Thanks @ntucker! - Query can take Object Schemas

    This enables joining arbitrary objects (whose pk works with the same arguments.)

    class Ticker extends Entity {
      product_id = '';
      price = 0;
    
      pk(): string {
        return this.product_id;
      }
    }
    class Stats extends Entity {
      product_id = '';
      last = 0;
    
      pk(): string {
        return this.product_id;
      }
    }
    const queryPrice = new schema.Query(
      { ticker: Ticker, stats: Stats },
      ({ ticker, stats }) => ticker?.price ?? stats?.last,
    );
  • Updated dependencies [3fa9eb9]: