We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
SOQL's .toValuesOf(field) method returns an empty Set when one of the queried records has the field as null
.toValuesOf(field)
null
System.debug(SOQL.of(Account.sObjectType).toValuesOf(Account.Industry)); // {}
System.debug(SOQL.of(Account.sObjectType).whereAre(SOQL.Filter.with(Account.Industry).isNotNull()).toValuesOf(Account.Industry)); // {Education, Mining, Manufacturing...}
.toValuesOf(field) returns a Set with all values when extracting a nullable field, including null
The text was updated successfully, but these errors were encountered:
pgajek2
Successfully merging a pull request may close this issue.
SOQL's
.toValuesOf(field)
method returns an empty Set when one of the queried records has the field asnull
STEPS TO REPRODUCE
Expected behavior
.toValuesOf(field)
returns a Set with all values when extracting a nullable field, including nullThe text was updated successfully, but these errors were encountered: