Error: Expected number or lookup ref for entity id, got ....This happens because you didn't specify schema for that data attribute. Schema is optional on DataScript but it is required in this case. Add this line to your database, the issue should be fixed
{:your-attribute1 {:db/valueType :db.type/ref} :your-attribute2 {:db/valueType :db.type/ref}}
No comments:
Post a Comment