Check if data exist in collection

Hi,

you can just do

collection = client.collections.get(class_name)
nr_objects = len(collection)

then you know how many objects there are in the collection

1 Like