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

graphql mutation using input object

I'm using graphql apollo client for Android. I'm able to pass data using mutation for a single fields without any issue. While using input object in mutation the error cannot read property of email undefined occurred. But same graphql working while…
Siva Sonai
  • 107
  • 12
2
votes
1 answer

How can I use Apollo/GraphQL to incrementally/progressively query a datasource?

I have a query like this in my React/Apollo application: const APPLICATIONS_QUERY = gql` { applications { id applicationType { name } customer { id isActive name shortName …
Beau
  • 11,267
  • 8
  • 44
  • 37
2
votes
1 answer

Access-Control-Allow-Origin is not * but Chrome insists it is (after upgrading apollo-server)

There were some features I wanted from apollo-server and spent some time refactoring my code to it (was previously using express-graphql). The only problem now is a "CORS" problem between my web app (using apollo-client) for authenticated requests.…
q.Then
  • 2,743
  • 1
  • 21
  • 31
2
votes
2 answers

How to return error response in apollo link?

I'm using apollo link in schema stitching as an access control layer. I'm not quite sure how to make the link return error response if a user does not have permissions to access a particular operation. I know about such packages as graphql-shield…
Le garcon
  • 7,197
  • 9
  • 31
  • 46
2
votes
2 answers

Deleting Record from List, Apollo GraphQL Optimistic UI Mutation

I'm looking for a way to have an optimistic Ui delete an Item from a list. The query for the list is: myQuery{ Foo:{ Bar:{ id } } delete mutation: mutation deleteBar(input: barInput!){ deleteBarItem: (responds Boolean for success) } How…
Kenny Hammerlund
  • 436
  • 4
  • 14
2
votes
1 answer

React Select with Custom MultiValueContainer and Apollo Mutation not Cooperating

I have a custom component that uses Apollo and React-Select and has two mutations (see below). The react-select is multivalue and needs to be custom because I need an "isSelected" checkbox on it. Not shown in this code, but the initial options list…
doug31415
  • 275
  • 2
  • 9
2
votes
1 answer

Sending apollo request outside batch

I have an apollo frontend with batch requests set up. However there are certain requests that shouldn't be included in the batch: A component depends on a "small" version of a request to load The "full" request should happen at the same time, to be…
jorgen
  • 3,425
  • 4
  • 31
  • 53
2
votes
1 answer

Quasar Framework (Vue) Uploader using apollo-upload (GraphQL)

I'm trying to upload an Image with the Uploader of Quasar via apollo-upload. This is how I implement the Uploader. Here is the uploadFactory-Function: uploadFactory (file,…
Tristan G
  • 1,720
  • 2
  • 13
  • 22
2
votes
1 answer

Why is an updater/update function required to update the local cache in React Relay and Apollo Client?

I am considering using React Relay or the Apollo Client. I like the idea of GraphQL as a query language that can be executed against any API or data store. However, I am surprised by the need to manually (and imperatively) update the store/cache…
Corey Quillen
  • 1,566
  • 4
  • 24
  • 52
2
votes
1 answer

Apollo Server 2 + Auth0

So I have an app that logs me in via Auth0 and saves a jwt token in a cookie. I also have an Apollo Server 2 that retrieves the data. How do I secure the Apollo Server and only return data if the user is logged in and verified by the Auth0…
Chris F.
  • 493
  • 5
  • 17
2
votes
1 answer

Apollo GraphQl Storing derived data

Some context: I'm developing a React JS app that reads geographic points out of a database and graphs/maps them in various ways. There are raw maps and plots that just show data straight from the database but there are also plots and metrics that…
Raychaser
  • 340
  • 2
  • 12
2
votes
1 answer

I am getting acess denied error while generating java file through Apollo in android using graphql and apollo library

This is my app(build.gradle) in which I am using these dependencies implementation 'com.apollographql.apollo:apollo-runtime:0.3.2' implementation "com.apollographql.apollo:apollo-android-support:0.3.2" implementation…
Shivegeeky
  • 183
  • 1
  • 7
2
votes
2 answers

Installing GraphQL iOS Framework

I want to add the apollo framework to my iOS project. I'm following the documentation but can't build it. I install apollo via cocoapods I add a code generation build step to my target (put it above compile sources...) I download the schema via…
2
votes
1 answer

User specific publish (subscriptions)

Here's a small issue I faced and couldn't find much info in the documentation. I am trying to create private chat messages. We have the following code to subscribe a user to a topic: export const resolvers = { Subscription: { somethingChanged:…
pewpewlasers
  • 3,025
  • 4
  • 31
  • 58
2
votes
0 answers

Apollo-cli instead of Apollo-codegen is resulting of a wrong output?

I'm working on Android Studio with apollo to use GraphQL. I saw that apollo-codegen has been update as Apollo-cli. Before the command was apollo-codegen download-schema https://api.github.com/graphql And it has been update to apollo…
Nearyuk
  • 167
  • 2
  • 12