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

getEntries by id? #118

Closed
silviopaganini opened this issue Feb 17, 2017 · 1 comment
Closed

getEntries by id? #118

silviopaganini opened this issue Feb 17, 2017 · 1 comment

Comments

@silviopaganini
Copy link

Hi there

is there any chances to get entries from a queried set of ids?

at the moment I have something like

const ids = [1, 2]; // those ids are the internal ones from Contentful the ones inside sys.id
client.getEntries({
    content_type: 'space',
    'sys.space.id[all]': ids.toString())
.then().catch(); 

I also tried
sys.id[all]
fields.sys.id[all]
id[all]

is it actually supported?

Thanks

@silviopaganini
Copy link
Author

silviopaganini commented Feb 17, 2017

found it!

sys.id[in] works!

thanks!

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

1 participant