Best way to query objects using id at once

Is there any best way to query objects from a class using multiple ids at once.

What if I have uuids of 5 objects and I want to fetch them all at once.

Hi! Welcome to our community :hugs:

You can use the contains any/contains all filter:

and apply it to by id

Let me know if that helps!

Yes, Thanks for your response! Is there any way we could fetch all the properties from the objects?

If you are running Weaviate 1.23 and using the python v4 client (that leverages the new GRPC connection), it will return all properties by default.

Otherwise, if using python v3, you will need to specify each property.

Thank you for your response, that really helped!.

1 Like