From the (new) API doc:
Gets the full items referenced in the specified property.
The queryReferenced() function returns a Promise that resolves to the full items that are referenced in the specified property of the item from the specified collection. The Promise is rejected if the current user does not have read permissions for the specified collection or the collection containing the referenced items.
For example, suppose you have a movies collection with an actorsfield and condition ? true : falsehe actors field contains references to items in a people collection.
Maybe you want to look at this.