Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation on how to use QueryRoot to expose _service #58

Open
reduxdj opened this issue Sep 12, 2022 · 1 comment
Open

Documentation on how to use QueryRoot to expose _service #58

reduxdj opened this issue Sep 12, 2022 · 1 comment

Comments

@reduxdj
Copy link

reduxdj commented Sep 12, 2022

I am trying to integrate ApolloRouter in rust with a subgraph written in async-graphql, do you have any examples how to expose the _service query for apollo rover, Looks like the QueryRoot type (not a pub crate) has this functionality, just don't know how to use it please.

@reduxdj
Copy link
Author

reduxdj commented Sep 12, 2022

The documentation could have this addition to make it easier to use, please.

    let schema = Schema::build(Query, EmptyMutation, EmptySubscription)
        .enable_federation()
        .finish();

@reduxdj reduxdj closed this as completed Sep 12, 2022
@reduxdj reduxdj reopened this Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant