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
Bug
when use bulkInsert to insert doc, the rxDocument property on changeEvent is an object, not a RxDocument instance
bulkInsert
rxDocument
import { createRxDatabase, addRxPlugin } from "rxdb"; import PouchAdapterMemory from "pouchdb-adapter-memory"; addRxPlugin(PouchAdapterMemory); async function test() { const db = await createRxDatabase({ name: "test", adapter: "memory", eventReduce: false }); await db.collection({ name: "tasks", schema: { title: "task", version: 0, type: "object", properties: { id: { type: "string", primary: true }, name: { type: "string" } } } }); db.tasks.insert$.subscribe(changeEvent => console.log("changeEvent.rxDocument", changeEvent.rxDocument) ); await db.tasks.bulkInsert([{ id: "1", name: "test" }]); } test();
https://stackblitz.com/edit/rxdb-bulkinsert-xqjfud?file=index.ts
The text was updated successfully, but these errors were encountered:
Yes, this is a bug.
Sorry, something went wrong.
Can you make a pull request?
@pubkey I have opened a pull request #2752
Merged.
No branches or pull requests
Case
Bug
Issue
when use
bulkInsert
to insert doc, therxDocument
property on changeEvent is an object, not a RxDocument instanceInfo
Code
https://stackblitz.com/edit/rxdb-bulkinsert-xqjfud?file=index.ts
The text was updated successfully, but these errors were encountered: