Skip to content

Get Multiple Properties in One Query? #73

Answered by leolabs
keeper2597 asked this question in Q&A
Discussion options

You must be logged in to vote

I usually just use Promise.all for this:

const [numerator, denominator] = await Promise.all([
  clip.get("signature_numerator"),
  clip.get("signature_denominator"),
]);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@keeper2597
Comment options

keeper2597 Jan 3, 2023
Author Sponsor

Answer selected by keeper2597
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants