feathers-waterline
A Waterline ORM service adapter
Installation
npm install feathers-waterline --save
Documentation
Please refer to the Feathers database adapter documentation for more details or directly at:
- Waterline - The detailed documentation for this adapter
- Extending - How to extend a database adapter
- Pagination and Sorting - How to use pagination and sorting for the database adapter
- Querying - The common adapter querying mechanism
Complete Example
Here is an example of a Feathers server with a todos
Waterline Model using the Disk store:
;;;;;; const ORM = ;const config = adapters: 'default': diskAdapter disk: diskAdapter connections: myLocalDisk: adapter: 'disk' defaults: migrate: 'alter' ;const Todo = WaterlineCollection; // Create a feathers instance.const app = // Enable REST services // Turn on JSON parser for REST services // Turn on URL-encoded parser for REST services ; moduleexports = { ORM; ORM;};
You can run this example by using node examples/app
and going to localhost:8080/todos. You should see an empty array. That's because you don't have any Todos yet but you now have full CRUD for your new todos service.
Changelog
1.1.0
- Use internal methods instead of service methods directly
1.0.0
- Stable release of finalized adapter
0.1.0
- First working release. Tests still need fixing but basic functionality works.
License
Copyright (c) 2015
Licensed under the MIT license.