Retrieving specific node from firebase database in android
<p>I am trying to use Firebase in my android application. I need to get an object, i am searching with its email (attribute in the object).
this is my code of search:</p>

<pre><code>FirebaseDatabase database = FirebaseDatabase.getInstance();
DatabaseReference myRef = database.getReference("Remorqueur");
Query queryRef=myRef.orderByChild("email").equalTo(ed_mail.getText().toString());
</code></pre>

<p>If the object exists in my database I need to get the whole object back! how can I do it?</p>