Skip to content
New issue

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

Unable to set document field value to null (postgress-serverless-readmodel) #1422

Closed
alexslavr opened this issue Jun 23, 2020 · 0 comments
Closed
Assignees
Labels
bug Issues related to defects and incorrect/unexpected feature behavior severity: minor Issues with low impact on the product, e.g., small improvements or imperfections

Comments

@alexslavr
Copy link

alexslavr commented Jun 23, 2020

Describe the bug
Unable to set the field value to null using the postgress-serverless-readmodel adapter

Error message:
resolve:resolve-readmodel-postgresql-serverless:update-to-set-expression Either key includes "$set", "$unset", "$inc" simultaneously
resolve:resolve-readmodel-postgresql-serverless:update-to-set-expression Either key has children update nodes

To Reproduce

await store.defineTable('MyTable', {
      indexes: { id: 'string' },
      fields: [ 'a', 'b' ]
    })

await store.update('MyTable', { id: '1' }, { $set: { a: 'someValue', b: null }  })
@MrCheater MrCheater added bug Issues related to defects and incorrect/unexpected feature behavior severity: minor Issues with low impact on the product, e.g., small improvements or imperfections labels Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues related to defects and incorrect/unexpected feature behavior severity: minor Issues with low impact on the product, e.g., small improvements or imperfections
Projects
None yet
Development

No branches or pull requests

4 participants