Comments (7)
Here is the error when trying to access the belongsTo record:
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Object # has no method 'find'
at ModelConstructor.personinfo (/Users/snesterko/Documents/work/theory/mockup/theory/node_modules/railway/node_modules/jugglingdb/lib/abstract-class.js:498:18)
at /Users/snesterko/Documents/work/theory/mockup/theory/app/controllers/admin/users_controller.coffee:21:21
at Function. (/Users/snesterko/Documents/work/theory/mockup/theory/node_modules/railway/node_modules/jugglingdb/lib/abstract-class.js:186:9)
at /Users/snesterko/Documents/work/theory/mockup/theory/node_modules/railway/node_modules/jugglingdb/lib/adapters/mongoose.js:104:9
at MongooseAdapter. (/Users/snesterko/Documents/work/theory/mockup/theory/node_modules/railway/node_modules/jugglingdb/lib/adapters/mongoose.js:72:13)
at Promise. (native)
at Promise. (/Users/snesterko/Documents/work/theory/mockup/theory/node_modules/mongoose/lib/promise.js:120:8)
at Promise. (events.js:67:17)
at Promise.emit (/Users/snesterko/Documents/work/theory/mockup/theory/node_modules/mongoose/lib/promise.js:59:38)
at Promise.complete (/Users/snesterko/Documents/work/theory/mockup/theory/node_modules/mongoose/lib/promise.js:70:20)
from jugglingdb.
Also having this problem with Redis, all relations (belongsTo, hasMany) are not working properly
from jugglingdb.
+1 with 'redis' driver, example code:
https://gist.github.com/1884921
Yields this:
matti:Development no$ node jtest.js
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Object # has no method 'find'
at ModelConstructor.author (/Users/no/Development/node_modules/jugglingdb/lib/abstract-class.js:499:18)
at /Users/no/Development/jtest.js:24:8
at ModelConstructor. (/Users/no/Development/node_modules/jugglingdb/lib/abstract-class.js:321:25)
at ModelConstructor.next (/Users/no/Development/node_modules/jugglingdb/lib/hookable.js:42:29)
at /Users/no/Development/node_modules/jugglingdb/lib/abstract-class.js:320:30
at ModelConstructor. (/Users/no/Development/node_modules/jugglingdb/lib/abstract-class.js:157:25)
at ModelConstructor.next (/Users/no/Development/node_modules/jugglingdb/lib/hookable.js:42:29)
at ModelConstructor. (/Users/no/Development/node_modules/jugglingdb/lib/abstract-class.js:155:22)
at /Users/no/Development/node_modules/jugglingdb/lib/adapters/redis.js:84:17
at /Users/no/Development/node_modules/jugglingdb/lib/adapters/redis.js:70:13
I am using redis 0.7.1 and jugglingdb 0.0.8
from jugglingdb.
Silly me, works as specified when using master instead of npm.
from jugglingdb.
Yeah, but wouldn't it be nice to update it on npm.
from jugglingdb.
+1 for npm, master works as expected
from jugglingdb.
belongsTo fixed. Published in package v0.1.1
from jugglingdb.
Related Issues (20)
- README documentation references are not reachable
- is this project dead ? HOT 5
- Potentially unhandled rejection [2] TypeError, when upgrading to new version of node. HOT 1
- Site down HOT 2
- Support multiple hooks per action
- Validations should be revisited
- Deprecate mutation features
- Consider removing all instance methods
- Disallow mixins on Model
- Model relations
- how to query field in multiple values? HOT 1
- Can i use JugglingDB in production? HOT 4
- process rpc message error TypeError: User.bulkUpdate is not a function HOT 2
- How can i delete one record ?
- Is this project maintained? HOT 2
- How to get the table definition from a datasource?
- upsert method doesn't trigger any hooks for mysql adapter HOT 3
- In
- Use in production? HOT 2
- Composite primary keys / composite foreign keys
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 jugglingdb.