4,528 questions
0 votes
0 answers
56 views
React Native Release APK works locally but breaks on Play Store with "undefined is not a function" Apollo Client error
My React Native app (v0.79.5) with Apollo Client works perfectly when testing locally with release APK, but when uploaded to Google Play Console and downloaded from the Play Store, I get consistent ...
1 vote
0 answers
91 views
Package subpath './express4' is not defined by "exports" error when trying to run a nestjs graphql
I'm trying to run a graphql server in nestjs. I get this error when trying to run this project. Package subpath './express4' is not defined by "exports" in /Users/shehanniwanthaka/WORK/RND/...
0 votes
3 answers
120 views
Nx Monorepo NestJS GraphQL application generating the latest schema
I have an nx monorepo with a NestJS GraphQL application and it doesn't seem to be generating the latest schema from my Resolver class. I have a @Query and a @Mutation but only the @Query is being ...
-1 votes
1 answer
79 views
How do I clear apollo errors that fill the console when running Cypress tests
Since sometime recently, possibly from upgrading to apollo 3.9.9 or from switching to mocking with graphql-codegen (not sure which if either), the console of my developer tools now fills up with ...
0 votes
1 answer
53 views
How to call hook after delete mutation?
In my react app, I would like to navigate to another page after I execute GQL delete mutation using Apollo. This mutation is called from inside a modal popup: function DeckDeleteModal({showModal, ...
1 vote
1 answer
33 views
Fetch user only once when filling react global state
I am using the following code to manage logged in user fetched from apollo query in my React app. import { useQuery } from '@apollo/client'; import { createContext, useEffect, useState } from 'react'; ...
0 votes
0 answers
122 views
Why am I getting "ERR_CONNECTION_REFUSED" when querying by sidecar-hosted backend in Azure App Service?
------------Update------------ In the end I never solved this problem, and instead deployed the api as its own app service which solved the problem. ----------- Original Post ------------------- I'm ...
0 votes
0 answers
47 views
During the startup of a SpringBoot project, the value of the Apollo-injected variable is null
I encountered an issue where, when using Apollo to inject a static variable property, the variable is null during project startup. However, when the variable is modified via Apollo, its value is ...
0 votes
0 answers
32 views
Log usage of deprecated GQL fields in Kotlin / Spring Boot
We use Apollo inside our Spring Boot app and define our schema in schema.graphqls file. Sometimes, we mark some arguments / fields as deprecated. Is there some way how to detect that some client calls ...
0 votes
0 answers
42 views
useQuery with useEffect not causing infinite re-render
I have below code snippet: const [state, setState] = useState(null); {data, loading, error} = useQuery(SOME_QUERY, {fetchPolicy: 'no-cache'}); useEffect(() => { setState(data) }, [data]); This ...
0 votes
0 answers
47 views
Type 'string' is not assignable to GraphQL type
I am writing a resolve for an object defined via Graphql. Despite the response returned from a query being correct, typescript keeps giving this error Types of property 'code' are incompatible. ...
0 votes
0 answers
34 views
Are inline fragments recommended for GraphQL for native mobile app consumption?
New to GraphQL. Working on designing integration for native mobile app (kotlin/swift). Planning to use Apollo GraphQL Architecture: native app(app) -> graphQL server (server) -> REST endpoint (...
1 vote
2 answers
246 views
getting cookies from apollo client on next js
I want to get the cookie with my client component, but somehow, it always return undefined or empty string. I am using js-cookie since someone recommend it. ApolloProviderClient.tsx: "use client&...
0 votes
1 answer
37 views
setContext not setting the token call before API call when token expires
Token API should get called before the GraphQL API but it's being called at the same time I am fetching the headers inside setContext Inside commonAuthHeaders I am calling the API to get refresh token ...
1 vote
0 answers
15 views
Cannot throw specific error to the frontend from backend in apollo/spring app
I want to throw a custom exception from the my reactive spring-boot backend to the browser front end over graphql apollo. I want to front end browser to know about the specific information in this ...