NextJS + Apollo + i18n - unexpected error

The client I am working with at the moment has requested I build a SSR React app which includes i18n. To solve this problem I tried to use NextJS and i18Next. I managed to get react and apollo...

How to add header for apollo client in react native application

This is how I define the apollo client with an upload link in my react native application. I would like to add some header with a token value, which gets send with every request. But unfortunately...

Intercept Apollo/graphql requests

we are using Apollo/Graphql in our application, and we are facing an issue. The application is developed in Angular 5, and NodeJS as backend with graphql server that will respond to the front...

How to execute an async fetch request and then retry last failed request?

Apollo link offers an error handler onError Issue: Currently, we wish to refresh oauth tokens when they expires during an apollo call and we are unable to execute an async fetch request inside the...

"Not allowed to request resource" in Safari and "Blocked loading mixed active content" in Firefox. Perfect functionality in Chrome

I am working on an app using a React frontend and Express backend, with GraphQL setup through Apollo (I am following and modifying tutorial...

Apollo graphql setting header to authmiddleware not working

I am using react-native and apollo client and if I try to set header by jwt stored in AsyncStorage, it seems not working. Other resolvers which doesn't need header works very well. My code is...

Context API using useContext in React Native is showing a TypeError

I'm attempting to use the modern Context API within React-Native, but I'm getting the following error: TypeError: TypeError: undefined is not an object (evaluating 'Context._context') my...

Apollo server set cookie to be accessed in next js app

I have a Next.js app and I am using apollo-server-micro and apollo-client. I am unable to set a cookie session when the user hits the login mutation. Here's my server.js setup (npm start) const...

Apollo-Server-Express not receiving Upload Object

I'm trying to upload a file using apollo-server-express and apollo-client. However, when the file object is passed to the resolver it is always empty. I can see the file on the client, but not the...

Allowing a multipart (image) upload through GraphQL for Elixir backend

I was hoping to get a clearer understand where I may be going wrong. Sorry if I ask a lot of questions since I feel a bit lost and been stuck for about a week on this one. Currently, I've changed...

Angular and NPM dependencies VS devDependencies

after un bunch of reading on this matter and following this very usefull post :...

"Must provide query string" error with Apollo Client on React and Nexus Graphql Server

I'm starting to work with GraphQL and the new Nexus Framework GraphQL server, which is a great product. On my server-side, I defined my schema, I can query my database with Prisma and everything...

How to use Apollo GraphQL subscriptions in the client-side NextJS?

I am new to NextJS. I have a page that needs to display real-time data pulled from a Hasura GraphQL backend. In other non-NextJS apps, I have used GraphQL subscriptions with the Apollo client...

Pass context from useQuery to Apollo client

I'm building an next.js app in which I intend to consume several graphql-apis. I would like to pass a context when using the useQuery from @apollo/react-hooks in my components. At the moment my...

AppSync subscriptions with ApolloClient in React

I'm currently using ApolloClient to connect to an AppSync GraphQL API. It all works perfectly for queries and mutations, but I'm having some trouble getting subscriptions to work. I've followed...

ApolloClient Type errors for ApolloLink

I'm trying to create ApolloClient using TypeScript, but there are some type-errors that I can't resolve. Can anyone point me to right direction what to do? Below are the sample code (which is...

How to add @vue/apollo-composable to Quasar Frramework

We're trying to add a boot file to Quasar Framwework to be able to use @vue/apollo-composable with the Vue composition API. This tutorial explains how that is done for the old apollo-client and...

GraphQL: TypeError: Cannot read property of undefined

I have an Apollo GraphQL projects where I have created my own Query and Mutations. I have done using mock data and Query and Mutation works fine. But when I am trying to do with Sequelize ORM, I...

How to enable cors for apollo-server-lambda

Ok so I see a lot of answers for how to enable cors for apollo-express, but I haven't found one really for apollo-server-lambda. This is the error that I'm getting from chrome: Access to...

Apollo Server + Next.js - GraphQL Schema Not Updating

I have an Apollo GraphQL / Next.js application. After changing my graphql schema and navigating to the graphql playground at "http://localhost:3000/api/graphql", the old schema is still being...

I am using vue 3 with apollo/client but getting an error

I am using vue 3 with composition api with apollo/client . I did everything from documentation but this is as far I could go.I provied a correct backend url and just cant figure it out.This is my...

What is the difference between SchemaLink and HttpLink for ApolloClient?

For ApolloClient we can use either SchemaLink or HttpLink. Is there any advantage for using one or other? // SchemaLink function createLink() { const { SchemaLink } =...

com.apollographql.apollo.exception.ApolloHttpException: HTTP 500 Internal Server Error

I keep getting the HTTP 500 Internal Server Error in my android studio trying to call a loginQuery with apollo client for android, following this tutorial : link to apollo docs Yet when I run the...

How to set up Apollo Subscriptions in NextJS in Client and Server side?

So I'm trying to set up Apollo Subscriptions in my NextJS App, and I am having trouble trying to get the right code to get it working. The problems I get when trying the code found in the Apollo...

Vue, Apollo, GraphQL: "TypeError: Cannot read property 'watchQuery' of undefined"

I am learning Vue and struggling with Browser Error that I have no idea how to approach. The app is using Apollo and GraphQL. The error is being thrown during navigation to Posts.vue component...

ReferenceError: process is not defined Module.../../../node_modules/graphql/jsutils/instanceOf.mjs

I am using graphql subcriptions for my project, it is an instagram clone and I am doing function to like or unlike post, I use npx create-react-app to create my client and I use express to make my...

How to initialize ApolloClient in SvelteKit to work on both SSR and client side

I tried but didn't work. Got an error: Error when evaluating SSR module /node_modules/cross-fetch/dist/browser-ponyfill.js: <script lang="ts"> import fetch from 'cross-fetch'; import {...

Cannot Connect to third Party GraphQL API in Gatsby using the gatsby-source-graphql package

I tried making graphQL request resources with the following credentials and I got these errors below. Here are some of the details of the GraphQL info below. The GraphQL Endpoint is set...

apollo-client in next.js with `next-with-apollo` VS the approach shown in next.js docs FAQ (no use of `getDataFromTree`)

Contrast in "apollo-client in next.js" approaches chosen in next-with-apollo npm library and the approach shown in next.js docs. The link of approach chosen by next.js for apollo client:...

How to use the global data from React inside Apollo client's initialization?

When it comes to state centralization I know how to use the context api and Redux. But to recover that state we always have to be inside a react component. What is the best strategy to access a...