Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
glynnbird opened this issue Aug 18, 2017 · 0 comments
Open

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

glynnbird opened this issue Aug 18, 2017 · 0 comments

Comments

@glynnbird
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant