1

Is it possible to retrieve objects with null in given field? How to create such a criterion object? Something like:

{where:
       {fieldname: 
                  {eq : null }
       }
}

doesn't return any values. There is nothing about what to do about this case in documentation : criterion object format

2
  • Is this related to Salesforce/Apex? Commented Dec 29, 2014 at 11:18
  • 1
    It is related to Visualforce
    – mkubacki
    Commented Dec 29, 2014 at 11:32

1 Answer 1

2

Use following code snippet:

{where:
   {fieldname: 
              {eq : ''}
   }
}

Note that you should not pass null instead you need to pass '' empty string.

2
  • Additional question: Is it possible to make empty criterion - without any criteria?
    – mkubacki
    Commented Dec 29, 2014 at 14:19
  • empty criterion = no criterion , so you just need to skip the complete where block. Commented Dec 30, 2014 at 5:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .