Issue 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
Continue readingTag: graphql
Proceesing 2 queries graphql response that have same type into array
Issue 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()
Continue readingHow to handle the authentication token and and GraphQL client with Riverpod?
Issue We are using GraphQL to connect our backend with our mobil application. We are using Riverpod to, among other things, handle global state, dependency injection, etc. We are using a provider to handle the GraphQL cliente without any authentication
Continue readingWhat is a diff between Cache (Normalized, HTTP) and Persisted queries (Apollo)?
Issue An android app uses GraphQL (Apollo), this app has a Normalized cache, in order to reduce the number of queries to the backend. However, I see there is also APQ (Automatic Persisted Queries), as far as I understand it
Continue readingCreating Shopify Order Over Graphql
Issue I have a Mobile app made with flutter and when a client wants to place an order it opens Webview checkout, my question is how to create an order with cash on delivery over Graphql to avoid opening Webview
Continue readingFlutter graphql show actual request
Issue I’m using flutter_graphql and keep getting exception OperationException(linkException: ResponseFormatException(originalException: FormatException: Unexpected end of input (at character 1), )^ graphqlErrors: []), Is there a way to show the actual request sent? Want to see in console the actual request passed
Continue readingView Apollo cache during Android app development?
Issue Is there any Android Studio plugin or other way to check the content of the Apollo client cache? I have a GraphQL plugin tab in Android Studio but I can’t find a functionality there to view the cache? Update:
Continue readingHow can I send this customized query with graphql in flutter?
Issue Here is the query which I tried static String mainQuery = """query { user(id: "your_id") { id name income transactions { id title type currency created_at userId }}}"""; Solution If you want to use the GraphQL package in Flutter,
Continue readingQuerying Many-To-Many Relationships in AWS Amplify
Issue I have two models in my graphql schema and the one I am trying to query on, Sessions, has two @belongsTo directives (read on a forum this matters). I can successfully save these models and view them on the
Continue readingFlutter App with Firestore using Graphql benefits
Issue I have an app built with flutter and firestore as the DB. It works fine the way I need, it’s pretty fast (does not have much data), but since a few days ago I started wondering if adding GraphQL
Continue reading