examples icon indicating copy to clipboard operation
examples copied to clipboard

Documentation on how to use QueryRoot to expose _service

Open reduxdj opened this issue 3 years ago • 1 comments

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 avatar Sep 12 '22 16:09 reduxdj

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

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

reduxdj avatar Sep 12 '22 22:09 reduxdj