Tag: tag
-
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…
-
Amplify GraphQL query is success failed to parse
0 I have implemented an GraphQL query using amplify. Query is getting success but response is not getting parsed. Query Model static func getStationStateList(deviceUUID:String) -> GraphQLRequest<StationStateList>{ let operationName = "getStationStateList" let document = """ query getStationStateList { getStationStateList(DeviceUUID: "(deviceUUID)") { items { SK Data } } } """ return GraphQLRequest<StationStateList>(document: document, responseType: StationStateList.self, decodePath: operationName)…
-
Configuring Graphql Resolver with Azure Function and HttpTrigger by POST
0 I have an API Management Service in Azure, there I’m trying to configure my first mutation but I’m having troubles configuring the Resolver Policiy, let me share more details: Here is my mutation: my ResolverPolicy looks like this: <http-data-source> <http-request> <set-method>POST</set-method> <set-url>[URL]</set-url> <set-header name="Content-Type" exists-action="override"> <value>application/json</value> </set-header> <set-body>@{ var args = context.Request.Body.As<JObject>(true)["arguments"]; JObject jsonObject…
-
How to unit test function that calls Amplify Api mutate method?
0 I have a system that is using Amplify Api to interact with a GraphQL api that is not part of an Amplify project. None of it was set up with the amplify-cli. I have a function that makes a call to the mutate function of the AmplifyCategory class. I would like to unit test…
-
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…
-
github graphQL api – how to retrieve issue’s project items?
0 I am new to github graphQL API and I have been scrambling for a solution to the following problem, using github Entreprise Cloud: I have a repo "myRepo" containing an issue "myIssue" issue "myIssue" is added to a projectV2 "myProject", which is defined at organization level (not in a repo) project "myProject" contains a…
-
How to resolve union in Azure APIM synthetic GraphQL
0 We are kind of experimenting with synthetic GraphQL in Azure APIM, using resolver policies. Up until now everything was working fine, but we want to introduce unions and so far no matter what and how we tried, we couldn’t make the resolver work. Unfortunately we could find no usable documentation or tutorial/posts/etc on the…
-
GraphQL – Apollo Client without using hooks?
11 I am attempting to use the Apollo GraphQL Client for React Native. However, in some parts of my app I need to do a mutation on the GraphQL data, in such a way that the interface should not be exposed to the user. For instance, on my sign up page, I want to create…
-
Amplify GraphQL order points by lat-long
0 I have a graphql query that returns a list of pullup bar objects. Query: query PullUpBarsByDate($userID: String) { PullUpBarsByDate( type: "PullUpBar" sortDirection: DESC ) { items { id lat lng userID } } } Returns something like this: [ { id: "rf6zrd1prm", lat: 63.50235889533083, lng: 28.426290788320724, }, { id: "y80ymnlgzi7", lat: 62.5654380797649, lng: 17.338090077030582,…
-
GraphQL to order by coordinates
0 I have a graphql query that returns a list of pullup bar objects. Query: query PullUpBarsByDate($userID: String) { PullUpBarsByDate( type: "PullUpBar" sortDirection: DESC ) { items { id lat lng userID } } } Returns something like this: [ { id: "rf6zrd1prm", lat: 63.50235889533083, lng: 28.426290788320724, }, { id: "y80ymnlgzi7", lat: 62.5654380797649, lng: 17.338090077030582,…