{"action":"opened","issue":{"url":"https://api.github.com/repos/SethTippetts/express-waterline/issues/2","labels_url":"https://api.github.com/repos/SethTippetts/express-waterline/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/SethTippetts/express-waterline/issues/2/comments","events_url":"https://api.github.com/repos/SethTippetts/express-waterline/issues/2/events","html_url":"https://github.com/SethTippetts/express-waterline/issues/2","id":127084887,"number":2,"title":"Working example?","user":{"login":"kokujin","id":2885603,"avatar_url":"https://avatars.githubusercontent.com/u/2885603?v=3","gravatar_id":"","url":"https://api.github.com/users/kokujin","html_url":"https://github.com/kokujin","followers_url":"https://api.github.com/users/kokujin/followers","following_url":"https://api.github.com/users/kokujin/following{/other_user}","gists_url":"https://api.github.com/users/kokujin/gists{/gist_id}","starred_url":"https://api.github.com/users/kokujin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kokujin/subscriptions","organizations_url":"https://api.github.com/users/kokujin/orgs","repos_url":"https://api.github.com/users/kokujin/repos","events_url":"https://api.github.com/users/kokujin/events{/privacy}","received_events_url":"https://api.github.com/users/kokujin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-17T09:44:27Z","updated_at":"2016-01-17T09:44:27Z","closed_at":null,"body":"When would there be a working example? The present ones are incomplete or outdated, For example:\r\n\r\nThis would fail because of missing adapters or connections\r\n`````\r\nimport express from 'express';\r\nimport waterline from 'express-waterline';\r\n\r\n// Parsers\r\nimport { json } from 'body-parser';\r\n\r\nlet app = express();\r\n\r\n// Required to parse `req.body`\r\napp.use(json());\r\n\r\n// Express Waterline middleware configuration\r\napp.use('/api/v1', waterline.init({\r\n  dir: path.join(process.cwd(), 'models'),\r\n  adapters: { },\r\n  connections: { }\r\n}));\r\n``````\r\n\r\nThis would fail because \"getModel\" does not exist\r\n\r\n````\r\n\r\nimport getModel from 'express-waterline';\r\n\r\nlet Person = getModel('person');\r\n\r\nPerson.then((Model) => Model.find({\r\n  employeeBadgeId: badgeId\r\n}));\r\n`````\r\n\r\nThanks"}}