Skip to content

returnChanges and conflict=null throw an error on delete #5713

@neumino

Description

@neumino

This query fails one every two runs (it insert the document, then delete it and return an error)

r.db('test').table('test').insert(
  {id: 1},
  {
    conflict: function(x,y,z) { return null},
    returnChanges: true
  })

The error being:

e: Expected type OBJECT but found NULL in:
r.db("test").table("test").insert({"id": 1}, {"conflict": function(var_88, var_89, var_90) { return null; }, "returnChanges": true})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions