Is there OData support?


#1

I would like to use OData syntax in my queries, including the $expand option. Is this possible?


#2

Hi,

Cockpit supports the mongo query syntax for filtering. Is $expand like the populate parameter for Cockpit?

Docs:
https://getcockpit.com/documentation/api/collections


#3

Artur, yes, it is similar but $expand allows you to specify which linked collection data to include in the filter and also be able to filter based on criteria contained within the linked collection.

Please see the following OData documentation: https://www.odata.org/documentation/odata-version-2-0/uri-conventions/#ExpandSystemQueryOption

Thanks,

Jared