Host: localhost. is not in the cert's altnames

I'm getting the below error while doing server-side rendering. RENDERING ERROR: { [Error: Network error: request to https://api-dev.xyz.io/graphql failed, reason: Hostname/IP doesn't match...

How to send a file to response a graphql query? (send a csv file from server to client)

I wanna send a csv file in repose of graphql query. I am using Apollo server and Apollo client and Reactjs. (send a csv file from server to client) can anybody give me an idea how can I implement it?

When to use watchQuery or query in Apollo-Angular?

I am using a watchQuery or query in Apollo-Angular (graphql) How is the logic and difference of the watchQuery and query

Network error: Unexpected token < in JSON at position 0 at new ApolloError

const httpLink = createHttpLink({ uri: 'http://localhost:3090/' }) const client = new ApolloClient({ link: httpLink, cache: new InMemoryCache() }) client.query({ query: gql` query...

Apollo Angular not sending request

I have a simple query (Apollo-Angular Client) to fetch some data from an GraphQL server public getQuestionBank(courseCode: string): Observable<ApolloQueryResult<{}>> { const query = gql` ...

Firing React Apollo mutation on page load

I am trying to implement email verification system in react-apollo application and running into an issue. The problem is that I want to fire a GraphQL mutation on page load when a user visits a...

Apollo GraphQL "Cannot return null for non-nullable field Mutation.createUser"

I know this is a somewhat common issue, but my implementation differs from the other posts. I'm using the most basic implementation which I can't get to work. I'm using Sequelize with MySQL as the...

Firebase functions--how to handle needing to wait for an async process to end before the express app is ready to be exported

I'm trying to get apollo gateway to run in google's cloud functions (particularly through firebase). Running apollo server is super easy on cloud functions with the following code const functions...

CORS issue with using localhost:3000 to access graphql API at a different URL

I have searched all over StackOverflow and saw similar questions but have not found a working solution. Wondering if anyone has a working solution? I am developing a create react app on...

Inherit interface resolvers in Apollo Federation

Is there a way to use interface resolver inheritance with Apollo Federation? I've found inheritResolversFromInterfaces: true which is an option for makeExecutableSchema. I couldn't find a way...

when I use \nuxt\strapi\ nuxt/apollo,it always told Cannot read property 'content' of undefined

when I use \nuxt\strapi\ nuxt/apollo,it always told Cannot read property 'content' of undefined. if I refresh the page it works! why? how can I do for it? here is my codes <template> <div> ...

Apollo codegen:generate gives error "Generating query files with 'typescript' target"

I have backend on Express with Apollo Graph. In my client React app im do next: apollo codegen:generate --excludes=node_modules/* --includes=**/*.tsx --target typescript --tagName gql --outputFlat...

How to refresh JWT token using Apollo and GraphQL

So we're creating a React-Native app using Apollo and GraphQL. I'm using JWT based authentication(when user logs in both an *activeToken* and *refreshToken* is created), and want to implement a...

Testing useSubscription apollo hooks with react

Testing the useSubscription hook I'm finding a bit difficult, since the method is omitted/not documented on the Apollo docs (at time of writing). Presumably, it should be mocked using the...

Handling file upload with nexus-prisma graphql

I'm trying to upload a file from my frontend app to my server but I keep getting this weird error and have no idea why it's happening. Error is frontend: Variable "$file" got invalid value {};...

Certbot command in docker-compose issues SSL certificate with invalid CA

The problem I'm trying to use certbot to auto-generate a TLS certificate for Nginx in my multi-container Docker configuration. Everything works as expected except the Certificate Authority (CA) is...

How can I retrieve an id from MongoDB create operation during a transaction?

I am trying to create an audit trail using Apollo Server and Mongoose. When a user initially registers, I create a document in the users collection and a document in the history collection for...

Issues deploying Next.js to Vercel using #getStaticProps()

Using Next.js hooked up to Apollo, I have a good 50 or so non-dynamic urls fetching data using getStaticProps(). It works wonderfully, and I love how the pages load in. The issue I am facing is...

error - ./node_modules/busboy/lib/main.js:1:0 Module not found: Can't resolve 'fs'

When I add a new React component to my NextJS app (React, TypeScript and GraphQL), my local development environment suddenly breaks with this cryptic error: wait - compiling... error -...

React build - not found: Error: Can't resolve 'buffer'

I am having an error when I build my application in react. I noticed this error only when I tried to build application. When I stopped dev server and ran it again, it showed the same error. It...

Why apollo client network request cancelled twice?

My apollo/client - useQuery is loading twice which is normal based on normal flow but when I have my network tab on devtools open and noticed weird stuff. I have 2 cancelled request I don't know...

Unhandled Rejection (Error): Response not successful: Received status code 400 new ApolloError

I'm kind new to Apollo Client. Let's talk less and show the code. I have a server that is running and I'm trying to make a mutation using react. mutation in the server.js const RootMutationType =...

Failed to install Vuex in Vue3

I want to install Vuex but I get an error. // error npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found:...

using req.headers.authorization gives Network error unable to reach server We could not introspect your endpoint graphQL Context failed: invalid token

I get the token from the login mutation and put it in the headers, but graphql server gives an error when trying to fetch that token using: const auth = req.headers.authorization; the previous...

Regex to find the HTTP response code number

I am a newbie to Regex. I was going through a problem where I needed to extract the HTTP response code given in the sample text. But I am not quite able to figure out the correct regex to apply...

Apollo Server Express - Playground cannot be reached

I am trying to follow this tutorial https://www.youtube.com/watch?v=I6ypD7qv3Z8&t=48972s but I am stuck on trying to make the playground work. I get to the playground on...

Express-session does not set cookie?

I'm following along with Ben Awad's 13-hour Fullstack React GraphQL TypeScript Tutorial and encountered a wall during the login cookie setting (aprx at 1:50:00). I think I successfully connected...

Serverless handler for Apollo Server throws error that it cant identify events on Netlify

Context: I am trying to deploy GraphQL using Apollo Server Lambda through Netlify. My handler is as below: Code: exports.handler = server.createHandler({ cors: { origin: '*' } }); I was...

AWS Graphql lambda query

I am not using AWS AppSync for this app. I have created Graphql schema, I have made my own resolvers. For each create, query, I have made each Lambda functions. I used DynamoDB Single table...

Uncaught Invariant Violation: client.watchQuery cannot be called with fetchPolicy set to "standby"

I just clone my project on Ubuntu machine and did yarn install and then yarn start and this giving me above error. However on my Windows machine it is working fine. I'm using "apollo-client":...