Closed securedimensions closed 1 year ago
Thank you for using the FROST Python client!
The way you create a list, you get an EntityList (with .list()). Top only specifies the size of a single response. But the iterator of an EntityList runs over all entities (in your case in steps of size 10). If you don't want to use more than 10 values, you could use .entities to get a python list avoiding the entity list iterator.
things = service.things().query().top(10).list().entities
Please also note that if the top value exceeds the batch value (on the server side), you will only get a list of the length of the batch value as a response. We believe this is already covered in the readme in the section EntityList.
Issue
The following code returns all
Thing
entities and not only 10:What am I doing wrong?