Skip to content

Instantly share code, notes, and snippets.

@mfifth
Created December 12, 2017 02:22
Show Gist options
  • Save mfifth/3fc203da1a65132e308a877846b7a353 to your computer and use it in GitHub Desktop.
Save mfifth/3fc203da1a65132e308a877846b7a353 to your computer and use it in GitHub Desktop.
const firebase = require('firebase-admin');
function get_artist_by_username(username){
firebase.database().ref('artists').where('artist_name', '==', data['vendor']).then(res => {
return res
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment