Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FindObjects similar method #60

Closed
bigmoof opened this issue Dec 20, 2022 · 1 comment
Closed

FindObjects similar method #60

bigmoof opened this issue Dec 20, 2022 · 1 comment

Comments

@bigmoof
Copy link

bigmoof commented Dec 20, 2022

Nice API.

Is there method similar to FindObjects implemented where it returns list of ids instead of objects?

Getting all the objects will take much longer if the list is long...

@robgridley
Copy link
Owner

robgridley commented Dec 20, 2022

Model->find() returns a KeyCollection which includes some "magic" to return full objects when, for example, you iterate over it. If you call the keys() method on the KeyCollection, it will just return the keys with no additional API calls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants