Created
September 30, 2019 23:21
-
-
Save prmichaelsen/4c048b0d27ed54e8bedecc53dbf62d2d to your computer and use it in GitHub Desktop.
This file contains 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
function getParticipantNames() { | |
// Because queries are cached, using the `allParticipants` query | |
// prevents another roundtrip to the database | |
const participants = database.getAllParticipants(); | |
return participants.map(p => p.name); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment