Is it possible to find the documents present in one bucket and not in another

Hi,

Suppose I have two buckets A and B. Is there a way I can find the documents present in A but not in B.

Thank you