Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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