1

Is there any way that we can search null value in apiato, for example api.domain.test/v1/endpoint?search=email:null I want to query null values to display as 1 group, any suggestions or advise on how to do so. Thank you in advance.

Alon Eitan
  • 11,997
  • 8
  • 49
  • 58
Mochi
  • 123
  • 8

1 Answers1

1

I think you cannot search null value in a URL like that but my idea is you can compare the string in the URL if the value == null you can check the condition and query the data that you want Ex: api.domain.test/v1/endpoint?search=email:null

if ($request->email == 'email:null')
{
     return 'query that you want';
}
Rohit Gupta
  • 4,022
  • 20
  • 31
  • 41