Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQLNullable nil coalescing #2596

Closed
calvincestari opened this issue Oct 20, 2022 · 1 comment · Fixed by #2600
Closed

GraphQLNullable nil coalescing #2596

calvincestari opened this issue Oct 20, 2022 · 1 comment · Fixed by #2600
Labels
bug Generally incorrect behavior

Comments

@calvincestari
Copy link
Member

From community topic https://community.apollographql.com/t/ios-1-0-graphqlnullable-null-coalescing/4681/1.

For something like:

let cursor: String? = "blah"

let query: Query = Query(pagination: Pagination(before: cursor ?? .none))

I keep getting the following error:

Cannot convert value of type ‘String?’ to expected argument type ‘GraphQLNullable’
@calvincestari calvincestari added the bug Generally incorrect behavior label Oct 20, 2022
@calvincestari calvincestari added this to the Next Release (1.0.2) milestone Oct 20, 2022
@calvincestari
Copy link
Member Author

See Pocket/pocket-ios#277 for a reproducible sample.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Generally incorrect behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant