You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @bdunay3, I think your issue is resolved by #2591. It hasn't gone out in a release yet, it will be included in 1.0.2. So if you target main for your dependency you should get the fix in the interim.
Please let us know if this is not fixed in main ASAP! I've got a unit test that verifies that this should work right now, but if we're missing something, we'd love to know before the patch release goes out.
Apologies I couldn't try this before you all shipped the update. But I did just try this with the official 1.0.2 release and it's not crashing any more. Thank you for the quick turn around!!
Bug report
We have a query in our graph that can return an array of optional values. When we generate the Swift code from this query we get a property like this:
In our unit tests when we use the
Mock
type to mock the graph data and we put a nil in the that array we get a crash inSelectionSet
.Versions
Please fill in the versions you're currently using:
apollo-ios
SDK version: 1.0.0Steps to reproduce
Here's a snippet of our unit test code that reproduces the issue:
We define the following mock instance:
Then when we run the unit test we get a crash in this code from TestMock.swift in the ApolloTestSupport library:
The text was updated successfully, but these errors were encountered: