Hi. I am Sergii.
This is repository for my portfolio / CV web-site.
You will have better experience if just open pencroff.com
Waterline (an adapter-based ORM for Node.js) as the plugin for Hapi
Home Page: https://www.npmjs.com/package/hapi-waterline
License: MIT License
Hi. I am Sergii.
This is repository for my portfolio / CV web-site.
You will have better experience if just open pencroff.com
Hi,
Thanks for a simple and good plugin :-). Love it
Hapi have released a version v17 where they among others remove all callback functionality and replace is with async/await, see the change log. This is a breaking change making. Thus the plugin needs to be updated to accommodate these changes. I can do this and the submit a pull request. Would that be okey for you?
Cheers
Mikael
not accepting model properties such as , isEmail, isIn , and more , please find the error am getting .
userError: The attribute platform
on the usersession
model contains invalid properties. The property isIn
isn't a recognized property.
at parseProperties (D:\MCT\APIServer\node_modules\waterline-schema\lib\waterline-schema\schema.js:239:48)
at D:\MCT\APIServer\node_modules@sailshq\lodash\lib\index.js:3253:15
at baseForOwn (D:\MCT\APIServer\node_modules@sailshq\lodash\lib\index.js:2223:14)
at D:\MCT\APIServer\node_modules@sailshq\lodash\lib\index.js:3223:18
at Function. (D:\MCT\APIServer\node_modules@sailshq\lodash\lib\index.js:3526:13)
at parseAttributes (D:\MCT\APIServer\node_modules\waterline-schema\lib\waterline-schema\schema.js:237:9)
at D:\MCT\APIServer\node_modules@sailshq\lodash\lib\index.js:3253:15
at baseForOwn (D:\MCT\APIServer\node_modules@sailshq\lodash\lib\index.js:2223:14)
at D:\MCT\APIServer\node_modules@sailshq\lodash\lib\index.js:3223:18
at Function. (D:\MCT\APIServer\node_modules@sailshq\lodash\lib\index.js:3526:13)
at normalizeCollection (D:\MCT\APIServer\node_modules\waterline-schema\lib\waterline-schema\schema.js:158:7)
===============================================================
and this is my model definition
module.exports = {
identity: 'usersession',
primaryKey: 'id',
datastore: 'mct_user_management',
attributes: {
id: { type: 'string', autoMigrations: { autoIncrement: true }, columnName: '_id' },
createdAt: { type: 'string', autoCreatedAt: true, },
isActive: { type: 'boolean', defaultsTo: true },
platform: { type: 'string', isIn: ['web', 'mobile'], defaultsTo:'mobile' }
},
};
Hi! We've both created a very similar plugin– mine is called dogwater. Maybe we can work-out a merging of features or something. I'm not sure the best way to approach this, honestly! I'd love to foster a Waterline community within the hapi ecosystem–I think it could be very great for the larger Waterline community, and also great for the hapi ecosystem, which doesn't have many offerings for ORM integrations. To start, here's a rundown of the differences between our plugins. Feel free to include anything I've missed.
hapi-waterline does, dogwater doesn't
getModel
methoddogwater does, hapi-waterline doesn't
getWaterline
methodAlso, here are some Waterline/hapi plugins of mine that you might find useful,
https://www.npmjs.com/package/bedwetter
https://www.npmjs.com/package/waterline-to-boom
https://www.npmjs.com/package/waterline-fixtures
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.