fix(db-mongodb): mongodb optimizations (#10120)
There are few issues introduced in #9594 that we need to look into with these changes.
This commit is contained in:
@@ -1134,30 +1134,6 @@ describe('Fields', () => {
|
||||
expect(doc.localized).toEqual(localized)
|
||||
expect(doc.group).toMatchObject(group)
|
||||
})
|
||||
|
||||
it('should clear a point field', async () => {
|
||||
if (payload.db.name === 'sqlite') {
|
||||
return
|
||||
}
|
||||
|
||||
const doc = await payload.create({
|
||||
collection: 'point-fields',
|
||||
data: {
|
||||
point: [7, -7],
|
||||
group: {
|
||||
point: [7, -7],
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
const res = await payload.update({
|
||||
collection: 'point-fields',
|
||||
id: doc.id,
|
||||
data: { group: { point: null } },
|
||||
})
|
||||
|
||||
expect(res.group.point).toBeFalsy()
|
||||
})
|
||||
})
|
||||
|
||||
describe('unique indexes', () => {
|
||||
|
||||
Reference in New Issue
Block a user