Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
{
  "request": {
    "filters": {
	"$or": [
	     {
	        "email" : "abc@example.com",
	     },       "phone" : "9988998899"  { 
            "phone" : "9988998899"
	     }
		],
       "firstName": "xyz"
    }
  }
}



basically a "$or" operator which takes an array of conditions to apply any of them.

...

Code Block
{
    "request": {
			"filters": {
                  "gender" : "male"
            },
           "orFilters": {
                  "email" : "abc@example.com",
                  "phone" : "9988998899"
            }
      }
}




Approach 1 is agreed to used.