4,528 questions
0
votes
0
answers
51
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 ...
0
votes
3
answers
117
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 ...
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, ...
0
votes
0
answers
121
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
31
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
46
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.
...
1
vote
2
answers
231
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&...
1
vote
0
answers
14
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 ...
1
vote
0
answers
42
views
Unknown logs in registered persisted query
I am trying to implement registered persisted query. when i am running a query which is not there in my PQL, with apq as enabled it is logging the query in router logs with error code “...
0
votes
1
answer
111
views
Fragments with Apollo kotlin Graphql not getting Fragment type in response using Moshi Converter
When using a Fragment in my query for Graphql call, I am facing below issue with Fragment during Moshi conversion.
I have query like this
fetchData($userId: String!)
{
...UserDataFields
}
fragment ...
0
votes
1
answer
85
views
Vue 3 apollo client UseLazyQuery for multiple results
I am trying to run the useLazyQuery in my vue to get data from Apollo client. I am passing the parameter and query return different results based on the parameter being passed.
My issue is that result ...
0
votes
0
answers
18
views
Fetchmore doesn't get the next result with 'after' variable. Apollo Graphql
I'm pretty new to GraphQL and I enountered an issue. The issue is: I have a list of tags that are around 40. so when I try to fetch the data initially, it returns a 30 tags and an end cursor:
const ...
2
votes
0
answers
196
views
Unable to compile Apollo in iOS with Xcode 16.1 - Missing run-bundled-codegen.sh
I’m working on an iOS project using Apollo with GraphQL in Xcode 16.1, and I’ve encountered an issue that prevents me from building my project correctly. When I try to build the app, I get the ...
0
votes
1
answer
155
views
Pagination of Data with Apollo GraphQL and SSR NextJS pages
I am using Next.js v14, graphql, ApolloClient and ApolloGraphQL Experimental support for NextJS
{
"@apollo/client": "^3.12.0-rc.3",
"@apollo/experimental-nextjs-app-...
-1
votes
1
answer
90
views
Is Apollo Client Devtools compatible with new React Native DevTools?
With the launch of the 0.76 version of React Native there is a new devTools and I was wondering if the Apollo Client Devtools is compatible with it.
3
votes
1
answer
1k
views
Why does querying Strapi with "DRAFT" status return both published and drafted items in GraphQL?
I'm using Strapi as a headless CMS with the Draft & Publish feature enabled, and I'm querying the data using GraphQL in my project. The problem I'm facing is with filtering drafted and published ...
0
votes
0
answers
163
views
Unable to Connect Apollo GraphQL Sandbox to My Local Graphql Server
I'm running a GraphQL server using Rails with the graphql-ruby and graphiql-rails gems. I can access the GraphiQL interface successfully. I've set up a POST route at /graphql that maps to graphql#...
1
vote
0
answers
98
views
Apollo Upgrade to 4.0.0 cannot find schema.graphqls
I'm updating my app to use Apollo 4.0.0 (from 3.8.2). When building, I get this error:
No schema found. Apollo needs a .graphqls or a .json schema.
There is most definitely a file called schema....
0
votes
1
answer
207
views
How to run a GQL Query against mock data to get realistic results in unit tests?
I’m looking for a way to run a query against a mock data object.
The problem
I currently mock the GQL response via . That works great, but the mock’s result comes back exactly as defined. The mock ...
0
votes
1
answer
49
views
Android apollo3 schema not found
I'm trying to use local schema from this url:
https://spacex-production.up.railway.app/
In my data module I have
apollo {
service("RocketsGraphQL") {
packageName.set("com....
0
votes
1
answer
120
views
Datasource is undefined when running the Apollo GraphQL server
I am getting datasource undefined on resolvers when trying to query getTracking.
I have a FedexAPI class that extends RESTDataSource from "@apollo/datasource-rest" as a Data source.
The ...
0
votes
1
answer
145
views
Can we use apollo client without npm (on shopify theme basically)
I am trying to implement apollo client in our shopify theme using vanilla js. almost all the documentation and guides use npm to install the apollo client package. while on shopify we don't use npm ...
1
vote
1
answer
167
views
Best practise to typePolicies with Apollo
I want to have centralized client-only fields.
Example:
Server:
type Name {
first: String
last: String
}
type User {
name: Name
}
Client:
extend type User {
fullName: String!
}
import { ...
0
votes
1
answer
291
views
Apollo Client is not using cached data and instead makes a network request
I have this weird behavior that I've been wrapping my head around for the past couple of hours.
Let's consider these two queries as examples:
A query that returns and array of authors
query Authors {
...
0
votes
1
answer
50
views
Two NextJS applications in separate repositories under one backend
I have two NextJS applications under separate repositories and different domains.
I want the second NextJS application to fetch the first NextJS application's backend code. Backend is graphql + apollo....