Dookie is a MongoDB fixture/preprocessor tool that extends JSON and YAML with extra syntactic sugar including extended ObjectId syntax, variables, imports via $require, inheritance, and more. Version 0.5.0 requires Node >= 10.0.0. It supports push (upsert data into MongoDB) and pull (export data to file). Differentiators: built-in support for YAML, $require for modular fixtures, and MongoDB extended JSON (e.g., $oid).
npm install dookieNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Pushes YAML fixture data into MongoDB using dookie.push() with async/await via co. Assumes MongoDB is running locally.
Upgrade Node to version >=10.0.0 or use an older version of dookie (if available).
Always pass the fixture file's absolute or relative path as the third argument to push().
Ensure you use dookie.push() to process the data before inserting, as raw InsertMany may not handle $oid.
Consider using mongodump or direct MongoDB export tools for production data dumps.
Provide the correct filename as third argument to push(), e.g., dookie.push(uri, data, './parent.yml').
Use import dookie from 'dookie' then call dookie.push(), or import { push } from 'dookie'.