Skip to content

Instantly share code, notes, and snippets.

@rtablada
Created September 6, 2018 22:22
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtablada/32585a6bb3610ba6c070c6dfeb4c7080 to your computer and use it in GitHub Desktop.
Save rtablada/32585a6bb3610ba6c070c6dfeb4c7080 to your computer and use it in GitHub Desktop.
return await RSVP.hash({
x: this.store.findAll('thing'),
u: this.store.queryRecord('user', { me: true })
});
// or
let [x, u] = await Promise.all([this.store.findAll('thing'), this.store.queryRecord('user', { me: true })]);
return { x, u };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment