Skip to content

Objects returned have id/rev instead of _id/_rev #7

@glynnbird

Description

@glynnbird

When I create or update an object with the library, it uses id and rev (instead of the actual _id and _rev) which freaks out a CouchDB user like me.

e.g.

(
    [id] => 2eb88e34d027a3f25e9bc26c5b06d615
    [rev] => 2-e605ccbf468cf32c53ffe3b0991996be
    [name] => Alice
    [interests] => Array
        (
            [0] => eating
            [1] => wondering
        )

    [friends] => Array
        (
            [0] => Cheshire Cat
        )

)

it clearly works but by hogging id and rev you are preventing users from using those keys for themselves.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions