{"action":"created","issue":{"url":"https://api.github.com/repos/reactjs/react-meteor/issues/106","labels_url":"https://api.github.com/repos/reactjs/react-meteor/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/reactjs/react-meteor/issues/106/comments","events_url":"https://api.github.com/repos/reactjs/react-meteor/issues/106/events","html_url":"https://github.com/reactjs/react-meteor/issues/106","id":121366450,"number":106,"title":"Can't Do any queries, but i can in the console.","user":{"login":"PatrickOfRubiconRealm","id":15097348,"avatar_url":"https://avatars.githubusercontent.com/u/15097348?v=3","gravatar_id":"","url":"https://api.github.com/users/PatrickOfRubiconRealm","html_url":"https://github.com/PatrickOfRubiconRealm","followers_url":"https://api.github.com/users/PatrickOfRubiconRealm/followers","following_url":"https://api.github.com/users/PatrickOfRubiconRealm/following{/other_user}","gists_url":"https://api.github.com/users/PatrickOfRubiconRealm/gists{/gist_id}","starred_url":"https://api.github.com/users/PatrickOfRubiconRealm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PatrickOfRubiconRealm/subscriptions","organizations_url":"https://api.github.com/users/PatrickOfRubiconRealm/orgs","repos_url":"https://api.github.com/users/PatrickOfRubiconRealm/repos","events_url":"https://api.github.com/users/PatrickOfRubiconRealm/events{/privacy}","received_events_url":"https://api.github.com/users/PatrickOfRubiconRealm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-09T23:33:38Z","updated_at":"2015-12-10T11:05:43Z","closed_at":null,"body":"Terms.find is not a function\r\n    at ReactMeteor.createClass.getMeteorState (terms.cjsx.coffee?74088d56821338029b2cb45b8109b45608090075:16)\r\n    at enqueueMeteorStateUpdate (ReactMeteor.js:52)\r\n    at ReactMeteor.js:19\r\n    at Tracker.Computation._compute (tracker.js:294)\r\n    at new Tracker.Computation (tracker.js:210)\r\n    at Object.Tracker.autorun (tracker.js:533)\r\n    at ReactMeteorMixin.componentWillMount (ReactMeteor.js:9)\r\n    at 43.ReactCompositeComponentMixin.mountComponent (react-with-addons-0.13.0.js:6847)\r\n    at 82.ReactPerf.measure.wrapper [as mountComponent] (react-with-addons-0.13.0.js:13909)\r\n    at Object.89.ReactReconciler.mountComponent (react-with-addons-0.13.0.js:14720)"},"comment":{"url":"https://api.github.com/repos/reactjs/react-meteor/issues/comments/163580030","html_url":"https://github.com/reactjs/react-meteor/issues/106#issuecomment-163580030","issue_url":"https://api.github.com/repos/reactjs/react-meteor/issues/106","id":163580030,"user":{"login":"PatrickOfRubiconRealm","id":15097348,"avatar_url":"https://avatars.githubusercontent.com/u/15097348?v=3","gravatar_id":"","url":"https://api.github.com/users/PatrickOfRubiconRealm","html_url":"https://github.com/PatrickOfRubiconRealm","followers_url":"https://api.github.com/users/PatrickOfRubiconRealm/followers","following_url":"https://api.github.com/users/PatrickOfRubiconRealm/following{/other_user}","gists_url":"https://api.github.com/users/PatrickOfRubiconRealm/gists{/gist_id}","starred_url":"https://api.github.com/users/PatrickOfRubiconRealm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PatrickOfRubiconRealm/subscriptions","organizations_url":"https://api.github.com/users/PatrickOfRubiconRealm/orgs","repos_url":"https://api.github.com/users/PatrickOfRubiconRealm/repos","events_url":"https://api.github.com/users/PatrickOfRubiconRealm/events{/privacy}","received_events_url":"https://api.github.com/users/PatrickOfRubiconRealm/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T11:05:43Z","updated_at":"2015-12-10T11:05:43Z","body":"Like this:\r\n\r\n@Terms = new Meteor.Collection('terms')\r\n\r\nSchemas.Terms = new SimpleSchema(\r\n\r\n  content:\r\n    type: String\r\n    autoform:\r\n      afFieldInput:\r\n        type: \"textarea\"\r\n        rows: 60\r\n\r\n  createdAt:\r\n    type: Date\r\n    autoValue: ->\r\n      if this.isInsert\r\n        new Date()\r\n\r\n  effectiveDate:\r\n    type: Date\r\n    autoValue: ->\r\n      if this.isInsert\r\n        new Date()\r\n)\r\n\r\nTerms.attachSchema Schemas.Terms\r\nMeteor.subscribe('terms') if (Meteor.isClient)\r\n\r\n(thanks)"}}