Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. let ref = Database.database().reference().child("Test")
  2. let Style = ref.queryOrdered(byChild: "AStyle").queryEqual(toValue: "(StyleCollect[0])").queryEqual(toValue: "(colorsCollect[0])").queryOrdered(byChild: "(brandCollect)")
  3.  
  4.  
  5.  
  6. Style.observeSingleEvent(of: .value, with: { (snapchot) in
  7.  
  8. for childSnapchot in snapchot.children {
  9.  
  10.  
  11. print(childSnapchot)
  12.  
  13. }
  14. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement