Questions tagged [apollo-android]

Apollo GraphQL client for Android, written in Java

Apollo-Android is a GraphQL compliant client that generates Java models from standard GraphQL queries. These models give you a type-safe API to work with GraphQL servers.

Documentation & Repo

60 questions
0
votes
1 answer

GraphQL [Apollo-Android]: two `.watcher().enqueueAndWatch` creating infinite refresh loop

I'm requesting a list of 'posts' from my server using enqueueAndWatch and it is causing an infinite refresh loop. The two queries are below: query GetOrganizationPosts { user { organization { posts { ...post …
Neal Soni
  • 556
  • 1
  • 5
  • 13
0
votes
1 answer

Apollo Java GraphQL Client: generateApolloSources failing

I am exploring graphql and I followed this tutorial https://www.graphql-java.com/tutorials/getting-started-with-spring-boot/ to get a server running. I am now trying to write a Java client for this server using this library:…
alampada
  • 2,329
  • 1
  • 23
  • 18
0
votes
1 answer

Best approach to waiting on pending live data using architecture components

I'm working on an application that fetches data from a graphql server via apollo-android. I do a single fetch on my aws rds database. I do this fetch right at the onCreate() of my CalendarFragment. The thing is, at onViewCreated(), I want to set my…
0
votes
1 answer

Task 'generateApolloSources' not found in root project

I am using apollo graphql client in java code. My gradle file is plugins { id 'org.springframework.boot' version '2.2.6.RELEASE' id 'io.spring.dependency-management' version '1.0.9.RELEASE' id 'java' } group = 'com.example' version =…
0
votes
1 answer

Cannot build a query from generated Apollo class in Kotlin (.builder() is absent)

I cannot build a query generated by Android Apollo library. I have the following .gpaphql file: mutation LogIn($username: String!, $password: String!) { tokenAuth(username: $username, password: $password) { token } } It generated a Kotlin…
Carlos
  • 349
  • 1
  • 3
  • 17
0
votes
2 answers

Why Apollo-android is not generating custom types even after adding custom mapping in the gradle?

Steps i am following to implement custom types in Android I have added customTypeMapping in the app's gradle file. Also created a customtype Adapater. Problem Next i am trying to add it to the apollo client where i have to pass customtype and…
0
votes
1 answer

com.apollographql.apollo.exception.ApolloParseException: Failed to parse http response

I am getting the "Failed to parse http response" exception for a particular Profile query. It seems data is read successfully with a 200 OK response as seen from the logs but the control goes to onFailure of the query. Before this query, the…
itabdullah
  • 605
  • 1
  • 8
  • 22
0
votes
1 answer

Android: Apollo subscription with RxJava2

I'm using subscription in Apollo with Rxjava2 as follow Rx2Apollo.from(someApolloCall) .observeOn(schedulerProvider.io()) .subscribeOn(schedulerProvider.ui()) .subscribe({ // on success }, { // on failure }) Everything is working well when…
Omar Labib
  • 57
  • 7
0
votes
1 answer

Exception in generateClasses when building AppSync project in Debug but not Release

A project I am working on gives the following error only when the build variant is Debug - whereas for Release the code is generated fine, project builds and AppSync works. It's only in Debug variant that the following error…
Mike
  • 48
  • 6
0
votes
1 answer

Mutation sending null parameters on Apollo-Android

I'm trying to integrate Apollo-Android with a server mounted locally, the query to show all of the entries is working fine, but when I try to create a new entry, it sends a query without the parameters. At first I thought it was a server-side…
Dreik
  • 1
  • 2
0
votes
1 answer

apollo-android does not provide variables in request

I used apollo-server-express to set up a GraphQL server with the following schema: input IGetUser { email: String ID: String UserID: Int! } interface Entity { createdAt: String updatedAt: String } schema { query: Query } type…
0
votes
0 answers

Downloading graphQL schema from server while building client project using gradle

As a client system developer, I want to download the GraphQL schema from server while building (using Gradle) my spring-boot project. As per ApolloGraphQL guide (apollographql.com/docs/ios/downloading-schema.html), we can download the schema using…
bpa.mdl
  • 396
  • 1
  • 5
  • 19
0
votes
0 answers

fetching data from GraphQL server through apollo environment through its client

I am storing the data in json format in GraphQL server and making a query like: query { symptoms{ id name picUrl } } Now I have to fetch it from the server using its client. My app gradle.build file is as follows: dependencies{ …
shikher.mishra
  • 155
  • 8
  • 24
0
votes
1 answer

Android ApolloCall.CallBack onResponse not fetching data

Im using this query for fetching data: query Products($id: ID!){ node(id: $id) { id ... on Collection { title products(first: 250){ …
Sehrish Fiaz
  • 57
  • 2
  • 7
-1
votes
1 answer

android.system.ErrnoException: open failed: ENOENT (No such file or directory), the file exists in the path with the name

I am trying to send an image to my apollo-graphql server, but I get the following error: android.system.ErrnoException: open failed: ENOENT (No such file or directory) This is the Android code: lifecycleScope.launch { val…
1 2 3
4