title: How to access specific data from firebase
body: <p>I am new to firebase and I am wondering how would you access specific data. Ill give you an example, BTW I am using flutter.</p>
  <p>Say I am creating data like this. I making a table of posts or I guess in firebase it'd be just a json array. In this json array I have 4 pieces of data state, city, post which as of right now just represents a simple message, and also timestamp.</p>
  <p>So my question is how can I get a filtered version of my posts with a given city and state? Is there something special you can do in firebase? or would I have to do the filtering when I am building the list view?</p>
  <p>I know FirebaseDatabase().reference().child('posts'); can access all of the posts.</p>
  <pre><code>var _firebaseRef = FirebaseDatabase().reference().child('posts');
      _firebaseRef.push().set({
        &quot;state&quot;: state,
        &quot;city&quot;: city,
        &quot;post&quot;: post,
        &quot;timestamp&quot;: DateTime.now().millisecondsSinceEpoch
      });
  </code></pre>