Tag: #android
-
Apollo Android Client – Cannot access generated classes on classpath
4 I’ve generated the Apollo classes successfully and can see them in the build directory, however they’re not available on the classpath. Strangely the Enum that is generated is available but the classes themselves aren’t. Running the sample project provided on Apollo’s Github does work but I cant see the difference between the configurations. mcve…
-
Android Studio Gradle Version Error On Apollo
0 Hello i want to use this "https://studio.apollographql.com/public/star-wars-swapi/variant/current/home" star wars api, but when i want to download scheme from terminal i take this error. Here my gradle app module; plugins { id("com.android.application") id("org.jetbrains.kotlin.android") id("com.apollographql.apollo3") version "3.8.2" id("com.google.dagger.hilt.android") kotlin("kapt") id("androidx.navigation.safeargs.kotlin") } apollo { service("service") { packageName.set("com.softcross.starwars") } } android { namespace = "com.softcross.starwars" compileSdk = 34…
-
Android-GraphQL-Apollo client – Query unresolved reference
0 I am trying to integrate graphql in my android project.My package name is app.android.mylife. I have set apollo { packageName.set("app.android.mylife") } in my gradle file. I created the same package structure for graphql folder also. main-graphql-app-android-mylife->(here all graphql files) I am having schema.json file which is also integrated . And defined the query like…
-
Proceesing 2 queries graphql response that have same type into array
0 I have 2 queries that have same type I tried to insert findOrderByOid into [FindOrderByRestaurantId] like this var orderListData: ArrayList<FindOrderByRestaurantIdQuery.FindOrderByRestaurantId?> = ArrayList() fun getOrderList(){ scope.launch { apolloBuilder.apolloBuild().query( FindOrderByRestaurantIdQuery( id = "1" ) ).execute().apply { orderListData = data?.findOrderByRestaurantId?.toCollection(ArrayList()) ?: ArrayList() } } } fun getOrderDetail(){ scope.launch { apolloBuilder.apolloBuild().query( FindOrderByOidQuery( oid = "15" ) ).execute().apply {…
-
Proceesing 2 queries apollo graphql that have same type into 1 array
0 I have 2 queries that have same type I tried to insert findOrderByOid into [FindOrderByRestaurantId] like this var orderListData: ArrayList<FindOrderByRestaurantIdQuery.FindOrderByRestaurantId?> = ArrayList() fun getOrderList(){ scope.launch { apolloBuilder.apolloBuild().query( FindOrderByRestaurantIdQuery( id = "1" ) ).execute().apply { orderListData = data?.findOrderByRestaurantId?.toCollection(ArrayList()) ?: ArrayList() } } } fun getOrderDetail(){ scope.launch { apolloBuilder.apolloBuild().query( FindOrderByOidQuery( oid = "15" ) ).execute().apply {…
-
No way to get nextToken when using custom GraphQL query?[Amplify]
0 //MovieList function Defination private fun getMovieList(): GraphQLRequest<MovieDBFinal2> { val document = ("query getMovieList { " + "listMovieDBFinal2s(limit: 1000, filter: {Genre1: {eq: "Animation"}}) { " + "nextToken " + "items { " + "IMDB_title " + "} " + "} " + "} ") return SimpleGraphQLRequest( document, Collections.emptyMap(), TypeMaker.getParameterizedType(QueryResponse::class.java, MovieDBFinal2::class.java), GsonVariablesSerializer()) } internal class QueryResponse<T>…
-
How to retrieve data where a record field matches with any item in the given list?
0 How to get all records from AWS Amplify GraphQL API where the field(example busNumber) of a model matches with any item in the given list. Note:- busNumber is of type String I am using AWS client side library to perform this in Kotlin in android studio. My Dependencies are:- implementation ‘com.amplifyframework:core:1.4.0’ implementation ‘com.amplifyframework:aws-api:2.14.1’ This…
-
Android Developer – VDart, Inc. – Plano, TX
VDart, Inc. Plano, TX Full Time, Accepts corp to corp applications, Contract: W2, Independent Skills Android Kotlin GraphQL Job Description VDart Inc is the leading global provider of digital solutions, products and talent management company providing digital technology solutions in Automotive, Manufacturing, Energy & Utilities and Healthcare Industries. Led by a strong global team located…
-
GraphQL Refresh Token in Kotlin
0 Please I need some help. I am running an Interceptor to detect if the access token is expired or not. So If expired I am trying to refresh Token otherwise I send the request. My issue that it is running the refresh token request with the token on the header and the other requests…
-
Issue with Accessing GraphQL Data Before Authentication on Android using Amplify
0 Question: Hello everyone, I’m relatively new to Amplify and currently working on a mobile application using React Native. The app is being developed for both Android and iOS platforms. I’ve integrated Amplify Auth and a GraphQL API into the app. While I’m able to access GraphQL data before authentication on iOS successfully, I’m encountering…