Comments (8)
What version of Backbone are you using?
from backbone-couchdb.
I was using v0.3.1 but I just updated to v0.3.3 and there's no change. Also, fyi, the error was originally on line 77. I added a couple lines to backbone-chouchdb.js while trying to figure out the problem.
edit: oops I accidentally closed this issue. Didn't mean to...
from backbone-couchdb.
Could it be that your error is related to this change?
https://github.com/jasondavies/backbone-couchdb/commit/a886e7d5188486e53b35094d72e13ef9f5fd7f30
backbone-couchdb is using the newest HEAD version of backbone.
from backbone-couchdb.
Yeah looks like it. No more error with the latest backbone. I'm still not getting any data when doing a fetch on a collection though. Create works. And it shows up in couchdb. But fetch shows 0 models.
My code works without backbone-couchdb and I've taken a look at your example app and I think I've done things right...
from backbone-couchdb.
What does CouchDB return? You can look up the result for each XHR request in the Inspector.
from backbone-couchdb.
{"total_rows":7,"offset":7,"rows":[],"update_seq":317}
When I go to the request url in another tab, the offset is 0 and there are 7 objects in the 'rows' array. So it looks like the offset is 7 when I want to it be 0. Is that something I can do or is it a bug?
from backbone-couchdb.
Seems like something is wrong in your couchdb view or the url of the collection.
from backbone-couchdb.
Oh hey. You're right. Typo in my view. Thanks a lot, it's working fine now.
from backbone-couchdb.
Related Issues (20)
- bycollection view should probably return doc_.id instead of doc HOT 5
- Support for deletion changes? HOT 3
- Possibility to pass include_docs when reading from views HOT 4
- Unpatched Backbone.Model still remians in Backbone.Collection::model HOT 2
- Objects returned by Model.clone() contain _id and _rev attributes of the cloned object HOT 1
- fetch method on collection not returning deferred object HOT 6
- just bumped into bb-cdb again today HOT 2
- Add the option to use lists and shows HOT 2
- jquery.couch.js in README defunct HOT 1
- Question about views and filters HOT 1
- Support CouchDB _updates HOT 3
- Compatibility with backbone-relational.js HOT 1
- Register Bower Package HOT 1
- I don't think doc.doc is what is needed during a fetch
- Undeclared variable error in error handler HOT 5
- Add support for backbone 0.9.9 HOT 1
- Accept doc.key instead of doc.value for group-by/distinct mapreduce views
- Fetch does not return XHR
- Need a way to get a single model by a non-ID attrib
- License file
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 backbone-couchdb.