Skip to content

I don't think doc.doc is what is needed during a fetch #56

@mikeymckay

Description

@mikeymckay

I think this line:

    for doc in data.rows
      if doc.value then _temp.push doc.value else _temp.push doc.doc

from:
https://github.com/janmonschke/backbone-couchdb/blob/master/backbone-couchdb.coffee#L75

Should be:

    for doc in data.rows
      if doc.value then _temp.push doc.value else _temp.push doc

At least that is what I need to handle a view with include_docs turned off. This will still set the id for each model. I am not sure what doc.doc handles though, so I will probably leave it in just in case:

    for doc in data.rows
      if doc.value 
        _temp.push doc.value 
      else if doc.doc
        _temp.push doc.doc
      else
        _temp.push doc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions