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

Values must have an id #23

Open
lobosan opened this issue Apr 7, 2017 · 2 comments
Open

Values must have an id #23

lobosan opened this issue Apr 7, 2017 · 2 comments

Comments

@lobosan
Copy link

lobosan commented Apr 7, 2017

Hi, I'm following this tutorial for ArangoDB 3.1, but when I try to add data to the collection through this URI:
localhost:1337/todos/create?name=john

I get this error: Invalid usage of publishCreate() :: Values must have an 'id', instead got ::

@gabriel-letarte
Copy link
Owner

I will need a bit more information than that. Can you give me the full stack trace?

@justsml
Copy link

justsml commented May 30, 2017

I resolved this (though w/ another adapter) by defining the _id explicitly in my model w/ something like _id: {type: 'string', default: () => new uuid()}

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

3 participants