{"action":"opened","issue":{"url":"https://api.github.com/repos/dburles/meteor-collection-helpers/issues/69","repository_url":"https://api.github.com/repos/dburles/meteor-collection-helpers","labels_url":"https://api.github.com/repos/dburles/meteor-collection-helpers/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/dburles/meteor-collection-helpers/issues/69/comments","events_url":"https://api.github.com/repos/dburles/meteor-collection-helpers/issues/69/events","html_url":"https://github.com/dburles/meteor-collection-helpers/issues/69","id":177118476,"number":69,"title":"Could I use with Meteor 1.4?","user":{"login":"thearabbit","id":4495160,"avatar_url":"https://avatars.githubusercontent.com/u/4495160?v=3","gravatar_id":"","url":"https://api.github.com/users/thearabbit","html_url":"https://github.com/thearabbit","followers_url":"https://api.github.com/users/thearabbit/followers","following_url":"https://api.github.com/users/thearabbit/following{/other_user}","gists_url":"https://api.github.com/users/thearabbit/gists{/gist_id}","starred_url":"https://api.github.com/users/thearabbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thearabbit/subscriptions","organizations_url":"https://api.github.com/users/thearabbit/orgs","repos_url":"https://api.github.com/users/thearabbit/repos","events_url":"https://api.github.com/users/thearabbit/events{/privacy}","received_events_url":"https://api.github.com/users/thearabbit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-15T08:30:09Z","updated_at":"2016-09-15T08:30:09Z","closed_at":null,"body":"I base on `Meteor 1.4, Collection2, SimpleSchema, AutoForm...`\r\n```js\r\n// common/customer.js\r\nexport const Customer = new Mongo.Collection(\"myPrefix_customer\");\r\nlet schema = new SimpleSchema({...});\r\nCustomer.attachSchema(schema);\r\n\r\n//common/borrowing.js\r\nimport {Customer} from 'customer.js';\r\n\r\nexport const Borrowing = new Mongo.Collection(\"myPrefix_borrowing\");\r\nlet schema = new SimpleSchema({\r\n   customerId:{\r\n      type: String,\r\n      ....\r\n   }\r\n   ....\r\n});\r\nBorrowing.attachSchema(schema);\r\n\r\nBorrowing.helpers({\r\n    customerName() {\r\n        return Customer.findOne(this.customerId);\r\n    }\r\n});\r\n```\r\nBut get error\r\n```js\r\nIf you notice problems related to these missing modules, consider running:\r\n\r\n  meteor npm install --save customer\r\n\r\nUnable to resolve some modules:\r\n\r\n  \"customer\" in /Users/theara/Desktop/meteor-app/...\r\n```"}}
{"actor":{"display_login":"thearabbit"}}