You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,10 @@ var Images = new FilesCollection({
34
34
}
35
35
})
36
36
37
+
// if you want to make use of dburles:mongo-collection-instances
38
+
// you need to create a 'parent' reference to the underlying collection
39
+
Images.collection.filesCollection= Images;
40
+
37
41
if (Meteor.isClient) {
38
42
Meteor.subscribe('files.images.all');
39
43
}
@@ -44,7 +48,8 @@ if (Meteor.isServer) {
44
48
});
45
49
}
46
50
```
47
-
__Note:__`Images` variable must be attached to *Global* scope. And has same name (*case-sensitive*) as `collectionName` option passed into `FilesCollectio#insert({collectionName: 'Images'})` method, `Images` in our case.
51
+
__Note:__ If you don't use Mongo Collection instances, then the `Images` variable must be attached to *Global* scope. And has same name (*case-sensitive*) as `collectionName` option passed into `FilesCollection#insert({collectionName: 'Images'})` method, `Images` in our case.
52
+
48
53
49
54
- Define your schema and set the `autoform` property like in the example below
0 commit comments