Created
September 6, 2018 22:22
-
-
Save rtablada/32585a6bb3610ba6c070c6dfeb4c7080 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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