menu

Apollo

A community of developers, designers and others who love Apollo and GraphQL. 🚀

Channels
# All channels
view-forward
# General
view-forward
# Apollo Angular
view-forward
# Announcements
view-forward
# Apollo Android
view-forward
# Apollo Client
view-forward
# Apollo iOS
view-forward
# Apollo Link
view-forward
# Apollo Link Rest
view-forward
# Local State
view-forward
# Apollo Studio
view-forward
# Apollo Server
view-forward
# Apollo Tooling
view-forward
# Contributing
view-forward
# Docs
view-forward
# Events
view-forward
# GraphQL Tools
view-forward
# Jobs
view-forward
# Random
view-forward
# React Apollo
view-forward
# Showcase
view-forward
# Subscriptions
view-forward
# Testing
view-forward
# Vue Apollo
view-forward
Team
Posts
Members
Info

useQuery (React) vs fetch (Swift)

Hello, I am coming from the react apollo side and trying to get my head around how to apply that on iOS using the apollo iOS library. It works great getting the data but I don't find any examples how to make use of the cache. The examples I found do copy the graphqlresult.data…

thumbsup
0
message-simple
0

ApolloCombine

For those of you into this sort of thing, I have published a collection of Combine publishers for the Apollo iOS client. The project is available via SPM and can be found at https://github.com/joel-perry/ApolloCombine. I have been using the fetch, perform, and upload publishers…

thumbsup
3
message-simple
1

Code generation --no-addTypename has no effect

Hello, I am setting --no-addTypename option during codegen but am still seeing __typename being passed in the query. Someone in the discussion here https://github.com/apollographql/apollo-tooling/issues/1357 posted that __typeName is required for Swift. Is it still the case? The…

thumbsup
0
message-simple
2

Fetch replaces cache on publish

Hello - I have been enjoying using the Apollo iOS SDK, but had some questions regarding mutating the cache. We are using an optimistic pattern to modify CRUD operations in the local cache when we fire off mutations. However, it seems that whenever we fetch a new query, it…

thumbsup
0
message-simple
3

Will partial result (some fields fail to resolve) be cached?

when the query is fetched but returned partial result (some fields fail to resolve), would this partial result still be cached? Do Apollo React, Apollo iOS and Apollo Android have the same behavior?

thumbsup
0
message-simple
3

ApolloCodegen.run(...) succeeds even with query syntax errors

I noticed that in the SwiftPM codegen library, ApolloCodegen.run(...) is marked as throws, but it doesn't actually throw an error if there was an invalid query in the set of input files. Is this intentional / is there a good way to check for such errors? Example: So the error…

thumbsup
0
message-simple
3

Looking for recommendation to perform Pagination + Watch in iOS and Android…

Problem We have done some experiments in adopting pagination and encountered a few issues. I am looking for a recommendation on how to extract paginated results that do achieve two of my main goals. For the context, we have a mobile application that has screens which show…

thumbsup
0
message-simple
2

Feedback on new networking stack

I've been playing around with the beta for the new networking stack and overall loving it, just a few suggestions- Proposals Move RequestCreator extensions to ApolloRequestCreator …

thumbsup
0
message-simple
3

Autogenerating code as internal instead of public

In my setup, I am using Apollo generated code in a library which is then used by the iOS app. All struct/enum/class that codegen generates are marked public. Is there a way to mark them as internal (or not have them marked as public which would default to internal) so that my…

thumbsup
0
message-simple
1

Can not declare DateTime

Hi, I need to declare a new type DateTime with Apollo. I've used this solution https://developer.apple.com/account/resources/identifiers/merchant/edit/2987U935LS/merchant.topica.asia But I got error "Invalid redeclaration of 'init(jsonValue:)'". Anybody can help?

thumbsup
0
message-simple
0