Skip to content

apollosolutions/connectors-batch-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

N+1 batching with Apollo Connectors

Check out the different folders to see how entity batching works with Connectors.

Trying it out during the preview

During the preview, the following steps are required to try new features:

  1. Update the @link directives to point to federation/v2.11 and connect/v0.2:
    extend schema
      @link(url: "https://specs.apollo.dev/federation/v2.11")
      @link(url: "https://specs.apollo.dev/connect/v0.2", import: ["@source", "@connect"])
  2. Opt into the preview with this router YAML configuration:
    connectors:
      preview_connect_v0_2: true
  3. Use Router v2.2.0-preview.0
    export APOLLO_ROVER_DEV_ROUTER_VERSION=2.2.0-preview.0
    rover dev
  4. Use Federation 2.11.0-preview.0 for composition:
    • In supergraph.yaml:
      federation_version: =2.11.0-preview.0
      subgraphs:
        products:
          # ...
    • In GraphOS, choose the "Federation Next" build pipeline version from the Variant settings page: Build pipeline settings modal

The code in this repository is experimental and has been provided for reference purposes only. Community feedback is welcome but this project may not be supported in the same way that repositories in the official Apollo GraphQL GitHub organization are. If you need help you can file an issue on this repository, contact Apollo to talk to an expert, or create a ticket directly in Apollo Studio.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published