Tag: apollo-server
-
How to properly pass a user and run middleware on apollo server v4
1 I am creating an apollo server v4 gql gateway with the express.js integration. I have user typedefs and user resolvers working and creating a jwt when a user is created. I then try to use my jwtMiddleware middleware on the /graphql endpoint so that it can validate a bearer token is being passed in…
-
How to Process Uploaded Image with Graphql Apollo with SharpJS in NodeJS?
4 I have a graphql mutation that gets an image from the frontend, and that then is processed and optimized on my server. But I can’t figure out how to pass my image to sharp. Here is my code: const Mutation = { createImage: async (_, { data }) => { const { file }…
-
Apollo Server 4: How to Mount Koa’s Integration at the URL Path `/graphql`
0 I’m migrating from Apollo Server 3 to Apollo Server 4 and using Koa.js as my framework and @as-integrations/koa middleware. I’ve encountered an issue where I can’t configure my Koa integration to listen to the path /graphql correctly. In Apollo Server 4, the documentation states that if you want your server to listen on a…
-
Procedure to install enterprise version of apollo graphql
-2 I want to know what is the procedure to install enterprise of apollo graphql into the project after buying it. I found these instructions after searching in bingAI chat After purchasing the Enterprise version of Apollo GraphQL, you can follow these steps to install it in your project: Visit the Apollo GraphQL website and…
-
Trying to build custom filter using apollo errors released with latest version 4, using nestjs
-1 I am trying to build an custom exception filter for graphql host using nestjs and apollo errors with all the standard codes, but not able to see any documentation for graphql host. graphql nestjs apollo-server Share Improve this question Follow edited 1 hour ago Krish909 asked 2 hours ago Krish909Krish909 7722 silver badges1212 bronze…
-
What is the design pattern for doing Apollo serverside logic
0 To learn GraphQL and Apollo I am working on a Tic Tac Toe game. Currently the way it works is that the server stores all game information so when the client clicks a square, it sends a mutation to the server which updates the GameState type and returns the new state. What I would…
-
How to do schema-stitching and introspection in new @apollo/server and graphql-tools?
0 I’m working on a Node.js project having a main-service(A central component where various remote microservices which are exposed with respective "port/graphql" are stitched together to create a unified API endpoint. It acts as a gateway or aggregator, allowing clients to access multiple functionalities provided by different microservices through a single entry point.). Now, I…
-
Apollo-Server subscription to Postgres database
1 I have a postgres table (User) which is fed data from a third party service like Airflow or Nifi. I am running an apollo-server with NodeJS which fetches the user data and passes this data to the React component. One way to show the details of users is using polling in apollo-client which will…
-
Apollo GraphQL Server + TypeScript
17 I’ve been working on a project lately, which has node.js + express + typescript + Apollo server stack. And while researching on Apollo client, I’ve stumbled upon TypeScript section. But nothing like that was for server, which leaves me to freedom of choice in this case. So the question is: are there any best…