Constraints in Data API call not working

I am able to fetch data into postman using the GET API but any constraint I apply doesn’t seem to work. I always get the entire dataset irrespective of the constraints I apply.

Does anyone know what the issue is?

Just shared some code solutions here: Search Constraints On Get Requests
For your test just put the whole url in the get formatted like below, and remove the body:

https://socialmocha.bubbleapps.io/version-test/api/1.1/obj/accounts?constraints=[{"key":"shopurl","constraint_type":"equals","value":"sm-test2-1001.myshopify.com"}]
1 Like

This worked fine. Thank you so much :slight_smile:

You’re welcome :slight_smile:

1 Like