How to query based on @documentReference?

Hello @tejaswinigurumoorthy !

Thanks for sharing the context above.

Before jumping in, I’d like to first point out this RFC (and corresponding development work currently underway) that might be a helpful reference to the current state and future plan for querying/filtering/ordering by subfield.

As you mentioned, you can currently load lists of documents based on their controlling account. Are you looking for a way to mirror the same behavior for the following field? Basically the equivalent of a SQL WHERE clause on the recipient field?