question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: Retrieve multipe objects by IDs

See original GitHub issue

I would be great to do this:

const customers = await stripe.customers.retrieve(['cus_12391239', 'cus_12392239'])

Instead of this:

const customers = await Promise.all([
  stripe.customers.retrieve('cus_12391239'),
  stripe.customers.retrieve('cus_12392239')
])

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:6
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
LeadDreamercommented, Oct 30, 2021

A couple years later, but a suggestion for rate limiting:

I’ve successfully used “promise-pool” with Firebase Firestore - the equivalent of a rate-limited, concurrency-limited “Promise.all()”, which might be useful here.

1reaction
rattrayalex-stripecommented, Jun 14, 2019

Awesome, thanks!

I think we’d like to do something here, but I don’t anticipate it happening anytime soon. In the meantime, feel free to upvote the PR and use a helper like this!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Search multiple objects using ID - Salesforce Developers
I have a list of IDs which holds IDs of Contacts or Leads. I would like to search for Lead and Contact using...
Read more >
Realm on Android - How to select multiple objects by list of ids ...
I'm building an Android app with the Realm database. I have a RealmObject subclass called Article which has an id field (it's and...
Read more >
directoryObject: getByIds - Microsoft Graph v1.0
Returns the directory objects specified in a list of IDs.
Read more >
Get objects API Reference - Algolia
The getObject method lets you retrieve a single object from a specified index. · The getObjects method lets you retrieve multiple objects from...
Read more >
[Feature Request] v-select multiple not showing items having ...
Problem to solve I have an array of objects. For some objects in the array, the property name is the same but id...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found