Comments (6)
I am a little surprised this doesn't work. I figured waterline would attach model instance methods with the correct context bound. Can you briefly describe the expected and actual result when using modelInstance.getFullName
?
from dogwater.
@minecrafter, for the sake of demonstration, I wrote a test for this on the model-instance-demo branch within this repo: master...model-instance-demo . It works just fine for me!
from dogwater.
Hmm, odd, as it wasn't working for me. I will do some more experiments and get back to you.
from dogwater.
I just got time to get my testing environment going. I'm checking everything now.
from dogwater.
The issue turned out to be related to babel, which is pretty odd. Converting the model to ES5 code works fine, as it turns out. I may need to bring it up with the developers.
from dogwater.
Cool– I'll close this out for now. Feel free to post here whatever you learned, as it could be an issue others have to deal with. Thanks!
from dogwater.
Related Issues (20)
- Drop support for waterline-fixtures
- Reconsider how to expose collections/connections HOT 2
- Add possibility to pass extended waterline models HOT 2
- Drop ability to register function-wrapped model definition
- Favor use of server.waterline over server.plugins.dogwater HOT 1
- Tear-down Waterline connections when server stops HOT 1
- 2.0.0 Release Notes HOT 1
- Associations Setup HOT 1
- Support hapi v14
- Upgrade lab to v11
- Dogwater hides configuration errors returned by Waterline.init HOT 4
- problem with Dogwater using Nes with JWT-authentication HOT 2
- How to return multiple collections on reply HOT 1
- Referencing models from other plugins HOT 3
- Accessing postgresql view? HOT 1
- Is there a functionality and/or cli for database migrations? HOT 1
- Hapi v17 Support HOT 1
- Waterline reports that 'connections' is no longer supported HOT 2
- Waterline reports that 'loadCollection' has been renamed to 'registerModel'. HOT 1
- Support waterline v0.13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dogwater.