Questions tagged [apollo]

Apollo is a GraphQL client and cache for JavaScript, iOS (Swift) and Android.

Apollo is a flexible, fully-featured client for every platform.

Apollo is made up of a family of technologies you can incrementally add to your stack: Apollo Client to connect data to your UI, Apollo Engine for infrastructure and tooling, and Apollo Server to translate your REST API and backends into a GraphQL schema.

It has implementations for JavaScript, iOS and Android. The JavaScript client has integrations for React, Angular, Vue.js, Ember.js and more.

Apollo is fully compatible with any server that implements the GraphQL specification.

4536 questions
2
votes
1 answer

Apollo Stomp ActiveMQ Creates Invalid Temporary Destination Names

Using C# framework 4.0 where the broker is running as a service on Windows 7 32bit I am seeing the following errors on both the stable and development versions. 2012-09-09 20:25:03,524 | WARN | Internal Server Error:…
1
vote
0 answers

Next js and graphql on demand revalidation in app router

I am creating next.js application with app router and appollo graphql, for graphql query i have used appolo @apollo/experimental-nextjs-app-support module, in next.js app router they have on demand validation pass in fetch api as per above…
vipul
  • 21
  • 4
1
vote
0 answers

graphql codegen defaults to watchQuery, no possible way to alter? I only want to get the value 1 time

I have a sveltekit + apollo graphql project here. introspecting from my dev-env api here. The issue I'm having is the codegen with this config: import type { CodegenConfig } from '@graphql-codegen/cli'; const config: CodegenConfig = { schema:…
SebastianG
  • 8,563
  • 8
  • 47
  • 111
1
vote
1 answer

Apollo error handling - how to differentiate between 503 and other 5xx errors

I've got a react app using Apollo to retrieve data from a graphql endpoint. I have an error link method set up to show different messages if an http error is returned from the GQL, which works fine for 4xx errors. However, if the server fails with a…
Heather Gaye
  • 1,118
  • 1
  • 11
  • 19
1
vote
0 answers

Apollo graphql client-side caching

This is an open question. Imagine yourself in the position of a front-end developer, trying to address the issue, which doesn't belong here. Here we go :) Prerequisites: React and Apollo Gql The layout: There are 3 queries: The one, which fetches…
alexg
  • 21
  • 2
1
vote
1 answer

CORS with apollo-server-express

I am using apollo-server-express like this: // Express setup const app = express() app.use(graphqlUploadExpress({ maxFileSize: 10000000, maxFiles: 10 })) app.use(cors()) Apollo is set up like this: // Apollo setup const server = new…
mikipero
  • 420
  • 1
  • 6
  • 27
1
vote
1 answer

Why can't I see changes until I refresh the page?

I can add a Task on my site, but I cannot see it until I reload the page. That means I have the data on my database and I can see it on Apollo4. I need to update the cache manually. I've been able to update updateTaskDone and deleteTask but newTask…
anfield
  • 31
  • 6
1
vote
0 answers

NextJS app with apollo switch from nodejs16 to nodejs18/20 triggers Zlib error: Incorrect header check error

The following code used to work in NodeJS 16 (16.20.0 tested), but when trying to use it with NodeJS 18 (or the latest NodeJS 20) there's the following error: Error: [http] [Network error]: TypeError: terminated [http] Error: incorrect header…
iamsaitam
  • 56
  • 1
  • 8
1
vote
0 answers

How can I federate custom scalar type cross subgraph via Apollo federation?

I have below graphql schema defined in a apollo server works as a subgraph behind Apollo federation router. extend schema @link(url: "https://specs.apollo.dev/federation/v2.0", import: ["@key", "@shareable"]) scalar DateTime @shareable type…
Joey Yi Zhao
  • 37,514
  • 71
  • 268
  • 523
1
vote
2 answers

WPGraphQL query variables not updating data

I'm trying to add a "Load More" feature to my blog posts page using Apollo/GraphQL/React, and am following the exact instructions founds here. However when I click on the load more button, it doesn't load any additional posts, and doesn't seem to…
bk___
  • 71
  • 10
1
vote
0 answers

Cannot read properties of undefined (reading 'method') apollo/server 4

Following the migration guide from apollo server - everything seems to start fine. However, when I make any request it says: Cannot read properties of undefined (reading 'method') This happens when I make requests from the client and also when i…
Edv Beq
  • 910
  • 3
  • 18
  • 43
1
vote
2 answers

Have image data given as base64-encoded JSON; I convert it into Nodejs Buffer type object. How do I show image again from saved Buffer data?

My situation is the following. I'm retrieving some image data from OpenAI's DALLE-2 API. The response gives me data as base64-encoded JSON. Once retrieved, I store it in a MongoDB database as Schema.Types.Buffer. I'm using Apollo-implementation of…
jcomp_03
  • 127
  • 1
  • 8
1
vote
0 answers

Apollo Server - Selectively return array members based on children

I'm using Node.js Apollo Server (4.3.0) to return fairly complex GraphQL. Greatly simplified here, I have an Connection of Child objects that can be queried directly, as well as a Connection of Parent objects that can contain the same…
Nathan
  • 11
  • 2
1
vote
1 answer

Storing Cookie for Apollo in Kotlin Jetpack Compose

I am trying to code this auth system for kotlin app using apollo client with firebase. We have built our web and iOS apps and haven't had any trouble storing the cookie. I have this as my constructor for the client in kotlin return…
Sherm13
  • 11
  • 2
1
vote
0 answers

NestJS : Not able to use Apollo Studio Explorer

I'm trying to use Apollo Studio Explorer with NestJS graphql (express server). I'm adding ApolloServerPluginLandingPageLocalDefault in the plugins array of GraphQLModule. It fails with this exception: error TS2322: Type…
Swapnil
  • 801
  • 3
  • 19
  • 42