Zaista / cypress-mongodb

Cypress MongoDB plugin
MIT License
17 stars 8 forks source link

Insert One Document always returns a duplicated default set of data #40

Closed Lisa-V-Sau closed 1 year ago

Lisa-V-Sau commented 1 year ago

Hi,

I'm using the Insert One method to insert data into my db, however it always returns my data as an object plus with an default set like the following:

-object() --data -default ---object ----data

I am unclear as to why its seeding my data in this form but is there anyway to just store it without either objects or defaults and just the data itself??

Appreciate the help, thanks!

Lisa

Zaista commented 1 year ago

Hi, thanks for raising the issue. I'm on vacation now, but will take a look as soon as I'm back.

Zaista commented 1 year ago

Do you mind sharing an example how to reproduce it? In the examples I use, insertOne works as expected...