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

  • Is this related to Salesforce/Apex? – Amit Bangad Dec 29 '14 at 11:18
  • 1
    It is related to Visualforce – mkubacki Dec 29 '14 at 11:32
2

Use following code snippet:

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

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.