質問編集履歴
6
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -11,7 +11,6 @@
|
|
11
11
|
func queryCfromABC(a: String, b: String, text: String, completion: @escaping (Class) -> Void) {
|
12
12
|
referenceABC(a: a, b: b) { (c) in
|
13
13
|
self.REF_C.child(c).queryOrdered(byChild: "name").queryStarting(atValue: text).queryEnding(atValue: text+"\u{f8ff}").observeSingleEvent(of: .value, with: { (DataSnapshot) in
|
14
|
-
print("DataSnapshot.children -> (DataSnapshot.children)")
|
15
14
|
DataSnapshot.children.forEach({ (child) in
|
16
15
|
let child = child as! DataSnapshot
|
17
16
|
if let dict = child.value as? [String: Any] {
|
5
修正
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
FirebaseのqueryOrdered
|
1
|
+
FirebaseのqueryOrderedがうまくいかない
|
body
CHANGED
File without changes
|
4
修正
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
FirebaseのqueryOrderedのやりかたが
|
1
|
+
FirebaseのqueryOrderedのやりかたがわからない
|
body
CHANGED
File without changes
|
3
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
## やりたいこと
|
2
|
-
**ノードa-b-cのb-1に属するcを取ってきて、ノードcから値を取ってきたい
|
2
|
+
**ノードa-b-cのb-1に属するcを取ってきて、ノードcから値を取ってきたい**
|
3
|
+
|
3
|
-
具体的には、bー1に属するc-1, c-3を取って、ノードcからcー1, c-3の値を取ってくる**
|
4
|
+
**具体的には、bー1に属するc-1, c-3を取って、ノードcからcー1, c-3の値を取ってくる**
|
4
5
|

|
5
6
|
|
6
7
|
## やったこと
|
2
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -35,7 +35,7 @@
|
|
35
35
|
|
36
36
|
## 問題点
|
37
37
|
ノードに参照してqueryOrderedはできるが、
|
38
|
-
ノードに参照して、
|
38
|
+
ノードに参照して、取ってきた値を指定して、queryOrderedができない。
|
39
39
|
```Swift
|
40
40
|
// これはできる
|
41
41
|
let REF_C = Database.database().reference().child("c")
|
1
誤字
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
FirebaseのqueryOrderedの
|
1
|
+
FirebaseのqueryOrderedのやりかたが間違っている?
|
body
CHANGED
File without changes
|