Skip to content

Commit

Permalink
Core schema support and Typescript query planner redux (#622)
Browse files Browse the repository at this point in the history
This commit re-introduces the TypeScript query planner, and adds support for core schema as input. This builds on the work @trevor-scheer has done in #588 to have composition output core schema instead of the previous incarnation of CSDL.

We've verified the output of the query planner through a large number of tests and feel confident these changes shouldn't affect the generated query plans.

@apollo/query-planner currently exposes the same API as before, but we'll change this in a follow-up PR to avoid repeated printing/parsing of schemas and queries.

Any references to CSDL both internally and outward facing have been updated to their new counterpart:
`supergraphSdl`. Supergraph SDL implements both the core and join specs, necessary for powering a router.

Co-authored-by: Trevor Scheer <trevor.scheer@gmail.com>
Co-authored-by: Jesse Rosenberger <git@jro.cc>
  • Loading branch information
3 people committed Mar 31, 2021
1 parent 72841bd commit 56f6e21
Show file tree
Hide file tree
Showing 75 changed files with 8,904 additions and 1,421 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Expand Up @@ -59,9 +59,9 @@ jobs:
### BUILD CACHE ###
- name: Cache Cargo registry, target, index
uses: actions/cache@v2
id: cache-cargo
id: cache-cargo-v2
env:
cache-name: cache-cargo
cache-name: cache-cargo-v2
with:
path: |
~/.cargo/registry
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rust-slow-test.yml
Expand Up @@ -68,9 +68,9 @@ jobs:
### BUILD CACHE ###
- name: Cache cargo registry, target, index
uses: actions/cache@v2
id: cache-cargo
id: cache-cargo-v2
env:
cache-name: cache-cargo
cache-name: cache-cargo-v2
with:
path: |
~/.cargo/registry
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rust-test.yml
Expand Up @@ -67,9 +67,9 @@ jobs:
### BUILD CACHE ###
- name: Cache cargo registry, target, index
uses: actions/cache@v2
id: cache-cargo
id: cache-cargo-v2
env:
cache-name: cache-cargo
cache-name: cache-cargo-v2
with:
path: |
~/.cargo/registry
Expand Down

0 comments on commit 56f6e21

Please sign in to comment.