couchdb-compile
couchdb-compile copied to clipboard
JSON inside directories get nested inside their name
- products/
- laptop.json -- with
"_id": "products/laptop"
- laptop.json -- with
- products.json -- with
"_id": "products"
The products/laptop document turns out as expected. But the products doc ends up looking like this...
{
"_id": "products",
"laptop": {
"_id": "products/laptop"
}
}
I poked around a bit, but couldn't quite sort it out. :confused:
Thanks!
Could you please paste the contents of the files here, so that I can reproduce the issue?