Database Filters For Arrays and Objects

Sorry ahead of time for the lack of code as I am currently in the process of designing a database for storing personal information and I was wondering what the Object and Array data types support when it comes to filters and queries.

for example,

bundles = “{fruit: apples, quantity : 5}”

can a database query actually operate on the number ( eg eq, ge, le, lt, gt …)? or are only the functions like contains and hasSome supported.

Sadly there is really no documentation on how these types are handled so I was wondering if anyone had any insights through trial and error