Giter VIP home page Giter VIP logo

multi-check-publish's Introduction

multi-check-publish

Experimental wrapper around Apollo Rover.

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.

Currently provides:

  • Performing schema checks for all subgraphs of a federated graph with multi-check-publish supergraph check --config config.yaml.
  • Publishing all subgraph schemas in a federated graph with multi-check-publish supergraph publish --config config.yaml.
  • Generating a supergraph config file from a graph in Apollo Studio with multi-check-publish supergraph init mygraph@current.

Usage

Until this is published to a registry, you can use it from GitHub:

npx github:@apollosolutions/multi-check-publish --help

Recipes

Duplicating a variant

npx github:@apollosolutions/multi-check-publish supergraph init mygraph@current | \
  npx github:@apollosolutions/multi-check-publish supergraph publish mygraph@new-variant --config -

Notes

  • You probably want to run rover supergraph compose before running either multi-check-publish supergraph publish. Publishing subgraphs with composition errors will not update your gateway when using managed federation.

multi-check-publish's People

Contributors

dependabot[bot] avatar iuliiasobolevska-indeed avatar lennyburdette avatar

Stargazers

 avatar

Watchers

 avatar  avatar

multi-check-publish's Issues

Add capability to supply `--client-timeout` to `rover` commands

I get the following error when trying to duplicate a huge variant:

Publishing SDL to mygraph@current (subgraph: some-service) using credentials from the default profile.
error[E031]: error sending request for url (https://api.apollographql.com/graphql): operation timed out
        You can try increasing the timeout value by passing a higher value to the --client-timeout option.
Internal Error: Command failed with exit code 1: node some-path/node_modules/@apollo/rover/run.js subgraph publish mygraph@current --name some-service --routing-url http://localhost:8084/some-service/graphql --schema -
Publishing SDL to mygraph@current (subgraph: some-service) using credentials from the default profile.
error[E031]: error sending request for url (https://api.apollographql.com/graphql): operation timed out
        You can try increasing the timeout value by passing a higher value to the --client-timeout option.
Publishing SDL to mygraph@current (subgraph: some-service) using credentials from the default profile.
error[E031]: error sending request for url (https://api.apollographql.com/graphql): operation timed out
        You can try increasing the timeout value by passing a higher value to the --client-timeout option.
    at makeError (file://some-path/node_modules/execa/lib/error.js:59:11)
    at handlePromise (file://some-path/node_modules/execa/index.js:119:26)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async roverSubgraphPublish (file://some-path/node_modules/@apollosolutions/multi-check-publish/src/rover.js:174:3)
    at async publish (file://some-path/node_modules/@apollosolutions/multi-check-publish/src/publish.js:44:22)
    at async PublishCommand.execute (file://some-path/node_modules/@apollosolutions/multi-check-publish/src/publish.js:24:5)
    at async PublishCommand.validateAndExecute (some-path/node_modules/clipanion/lib/advanced/Command.js:73:26)
    at async Cli.run (some-path/node_modules/clipanion/lib/advanced/Cli.js:222:24)
    at async Cli.runExit (some-path/node_modules/clipanion/lib/advanced/Cli.js:231:28)

It would be great to provide a capability to supply the --client-timeout to rover commands to override the standard timeout.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.