Questions tagged [apollo-gateway]

41 questions
0
votes
0 answers

Whitelisting GraphQL queries on apollo gateway server

I would like to figure out what is the most effective way of whitelisting graphql queries. In current implementation, I have a defined set of .graphql files that are fed to the gateway during start of the service. They are then stripped of…
0
votes
0 answers

@inaccessable directive not working apollo federation

i have been using this sample project :https://github.com/apollographql/federation-demo to test @inaccessible and requires directives. @requires directive is working as expected but even after using @inaccessable directive i'm still see the field in…
0
votes
0 answers

Route url with variable in apolloGateway

There are several services that process graphql-requests on relative URLs. Example: http://service:8080/graphql/a3333333-b111-c111-d111-e00000000011. And I don’t understand how to config apolloGateway that part of url is a variable. Try config url…
Nukopol
  • 11
  • 1
0
votes
0 answers

apollo federation Can I process this remotely like a hook resolver before request?

My question is as in the title. When configuring the gateway using apollo federation, there are query parameters that I do not want to expose to the supergraph. Can I process this remotely like a hook resolver before request?
COLEAN
  • 665
  • 2
  • 9
  • 24
0
votes
1 answer

graphql federation -- gateway isn't forwarding RESPONSE headers

I have a node + nest graphql api with a gateway and subgraphs. I have already configured the REQUEST headers to be forward to my subgraphs. The problem I now have is opposite, it seems that the gateway strips away any custom response headers set by…
0
votes
0 answers

Apollo gateway caching

I have service Test-Service which provides some data via graphql and Apollo Gateway. And I would like to cache requests on Apollo gateway, but it doesn't work, I still see in logs of Test-Service that it receives requests. Here is code of Apollo…
0
votes
0 answers

(Apollo Federation) How to route gateway's own schema

I am configuring a federation using apollo-gateway. Many services can be provided through the gateway, but functions such as authentication would like to be provided by the gateway itself. I am using supergraphsdl and implemented subgraph without…
COLEAN
  • 665
  • 2
  • 9
  • 24
0
votes
1 answer

Querying GraphQL Microservice with API key?

I have developed two Netflix DGS GraphQL Microservices and Apollo Gateway on top of these two microservices to make them as an federated graphql. I have a client application that is trying to query both the graphql microservices. And both…
0
votes
1 answer

How to achieve Asynchronous mutations using Apollo Gateway

When using Apollo Gateway, the Gateway will forward mutations directly to the concerned implementing service. Such requests are synchronous. Is there a way that Apollo Gateway can publish all mutations to a message broker like rabbitmq so that we…
0
votes
0 answers

Apollo Federation: How to access data from Input Request across federated services through resolver

Looking for an option to join graphQL API response using Apollo federation where Graphql APIs are built on top of POST services. To explain my usecase, I have created below dummy example. Two POST Services are User Service and Post Service Request…
user837593
  • 337
  • 1
  • 5
  • 25
0
votes
1 answer

How to use Apollo-Gateway with swagger-to-graphql tool?

I'm using Swagger Petstore via swagger-to-graphql npm module and able to run the GraphQL Playground for it. graphQLSchema('./swagger.json', 'http://petstore.swagger.io/v2', { Authorization: 'Basic YWRkOmJhc2ljQXV0aA==' }).then(schema => { const…
codef0rmer
  • 10,284
  • 9
  • 53
  • 76
1 2
3