We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
where
1 parent 0e926f6 commit 6c6ebd6Copy full SHA for 6c6ebd6
src/index.js
@@ -65,7 +65,7 @@ function bindDocument ({
65
66
function bind ({ vm, key, ref }) {
67
let unbind
68
- if (ref.add) {
+ if (ref.where) {
69
unbind = bindCollection({
70
vm,
71
key,
test/helpers/mock.js
@@ -87,6 +87,9 @@ class CollectionReference {
87
return this.data[id]
88
}
89
90
+ // used to check if it's a collection or document ref
91
+ where () {}
92
+
93
doc (id) {
94
id = id || new Key()
95
return this.data[id] = this.data[id] || new DocumentReference({
0 commit comments