Skip to content

Instantly share code, notes, and snippets.

@codekavi
codekavi / 1_using_queries.js
Created September 20, 2016 04:38 — forked from katowulf/1_using_queries.js
Methods to search for user accounts by email address in Firebase
/***************************************************
* Simple and elegant, no code complexity
* Disadvantages: Requires warming all data into server memory (could take a long time for MBs of data or millions of records)
* (This disadvantage should go away as we add optimizations to the core product)
***************************************************/
var fb = new Firebase(URL);
/**
* @param {string} emailAddress