I have some 'posts' in my ios App running with swift 3 and firebase.
Right now i'm calling only pose with a true value for the condition 'pubished' with the following:
readPosts = Post.observeList(from: Post.parentReference.queryOrdered(byChild: "published").queryEqual(toValue: true))
    {
        observedPosts in
        posts = observedPosts.reversed()
        self.feedTableView.reloadData()
    }
I would like instead to call post only with the condition 'published' and a value 'true', to call post with the conditions 'published' ( value 'true' AND 'privacy' with another value 'false')
how is this doable ? I'm turning crazy with it, thanks a lot :) :)
--- EDIT
The structure of my DB is the following:
    {
  "posts" : {
"KbzQAkcMZgT524RAIPj" : {
  "caption" : "caption text",
  "created" : 1486049033502,
  "creator" : "A25Aw84Li0NygXRMrCzerOSxgNY2",
  "imageUrl" : "https://firebasestorage.googleapis.com/v0/b/myserver-0.appspot.com/o/a--bl.jpg?alt=media&token=7-",
  "link" : "https://s3.amazonaws.com/ray.wenderlich/elephant_safari.mp4",
  "privacy" : "no",
  "published" : true,
  "title" : "COMING SOON"
},
"KbzQAkcMZgT524RAIPk" : {
  "caption" : "caption text",
  "created" : 1486049033402,
  "creator" : "o9epRntmZaNe2LdTUJV2g1zr54C2",
  "imageDetails" : "https://firebasestorage.googleapis.com/v0/b/myserver.appspot.com/o/a--bl.jpg?alt=media&token=6-",
  "imageUrl" : "gs://myserver.appspot.com/boa-bl.jpg",
  "link" : "https://s3.amazonaws.com/ray.wenderlich/elephant_safari.mp4",
  "privacy" : true,
  "published" : false,
  "title" : "COMING SOON"
}
  }
}
