Support Topics Documentation Slack YouTube Blog

Object Count of certain records in Relations

HI,

Is there a way to do an Object_count of certain records in a 1:N relationship?

HI @Michael_Iverson

Do you want to count the number of related objects?
You can also learn more about Count aggregation function here:
https://backendless.com/docs/rest/data_count.html

Best Regards,
Maksym

Hi,

I am aware of that function. I was wondering if I could use that function in a way to get certain related objects, instead of all the related objects in a 1:N relation.

Yes, you can you Data Filtering
You should use having clause alongside with Count function.

Hi,

Thank you for your help. That should resolve my issue.

Michael Iverson