apollographql / federation-next

Moved to the Router repository
https://github.com/apollographql/router/tree/dev/apollo-federation
Other
19 stars 1 forks source link

Add skeleton CLI tool #246

Closed SimonSapin closed 5 months ago

SimonSapin commented 5 months ago

Example usage: cargo cli api ../router/examples/graphql/supergraph.graphql

This executable is intended to be the successor of https://github.com/apollographql/composer-tool. Initially it has a single api subcommand that converts a supergraph schema to its corresponding API schema. (Error handling can be improved.)

The CLI is a separate crate so that the library crate does not need to depend on clap. See https://blog.axo.dev/2024/03/its-a-lib-and-a-bin