We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I'm struggling to use d.init_db and create a schema at the same time like so:
d.init_db([[1, "name", "Ivan"],[1, "age", 17],[2, "name", "Igor"],[2, "age", 35][1, "friend", 2]], [{"friend": {":db/valueType": ":db.type/ref"}}]);
Gives Error: nth not supported on this type function Object() { [native code] }
What am I doing wrong?
Mike
The text was updated successfully, but these errors were encountered:
e16341c
It’s a bug in DS and also you shouldn’t wrap schema in Array. Correct code should be:
d.init_db([[1, "name", "Ivan"], [1, "age", 17], [2, "name", "Igor"], [2, "age", 35], [1, "friend", 2]], {"friend": {":db/valueType": ":db.type/ref"}});
Sorry, something went wrong.
@motosota just pushed new release for you https://github.com/tonsky/datascript/releases/tag/0.11.0
No branches or pull requests
Hi,
I'm struggling to use d.init_db and create a schema at the same time like so:
d.init_db([[1, "name", "Ivan"],[1, "age", 17],[2, "name", "Igor"],[2, "age", 35][1, "friend", 2]], [{"friend": {":db/valueType": ":db.type/ref"}}]);
Gives
Error: nth not supported on this type function Object() { [native code] }
What am I doing wrong?
Mike
The text was updated successfully, but these errors were encountered: