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

Adds @_disfavoredOverload to GraphQLNullable operator #2650

Merged
merged 1 commit into from
Nov 8, 2022

Conversation

calvincestari
Copy link
Member

Fixes #2619

This fix lowers the 'priority' of the GraphQLNullable nil coalescing operator by using the @_disfavoredOverload attribute on the function overload. There is likely to be far more usage of ?? with types not specified in our users' code and this resolves the Ambiguous use of operator '??' being reported in those instances.

@netlify
Copy link

netlify bot commented Nov 8, 2022

Deploy Preview for apollo-ios-docs canceled.

Name Link
🔨 Latest commit 45ab2fe
🔍 Latest deploy log https://app.netlify.com/sites/apollo-ios-docs/deploys/636aa1a00b91070009aad40b

@AnthonyMDev AnthonyMDev merged commit 8ad7ad7 into main Nov 8, 2022
@AnthonyMDev AnthonyMDev deleted the fix/nil-coalescing-operator-ambiguity branch November 8, 2022 20:35
@calvincestari calvincestari mentioned this pull request Nov 18, 2022
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nil coalescing operator ambiguity
2 participants