# All channels
Are mocks supported with Apollo Federation.
On a federated GraphQL server, in my case the users service http://localhost:3000/users setting mocks: true in the apollo server configuration, allows mock data to be returned when runing queries and mutations in its playground. But when accessing http://localhost:3000 the…
Federated services availability
Good morning, we are evaluating Apollo Federation as possible solution for schema composition in a microservices environment and I have a question. The environment will be very dynamic with applications that can be deployed, bringing their contribution to the main graph, and…
Federation auth layer?
What is the best way to perform authentication in the federation service before forwarding the request to any of it's services? I currently have Federation, Auth serivce,...[other services]. Ideally I would like to call the auth service and only if authentication is granted to…
Correct way to merge schemas with buildFederatedSchema for a single federated…
What is the right way to merge multiple schemas with buildFederatedSchema for a single federated sub-service (that is, on the federated server, not on the gateway server)? Since schema stitching is deprecated, I tried using buildFederatedSchema to combine my local schemas into a…
Using @requires for a field not defined in the owner service
We'd like to be able to use @requires in cases where the field being required isn't owned by the service that owns the type. For example, in the federation demo, it would be nice if the reviews field could see whether the product is in stock, via Another case that would be…
__resolveReference for collections and __resolveReference N+1 optimizations?
__resolveReference should return a single instance. Trying to return a collection fails with error. But this is so highly innefecient. If I query from gateway 100 users (service users) with books, each of them having 100 books (service books) it will make 10000 requests to books…