Skip to content

is it possible to set a field back to undefined with cloud code? #4692

Closed

Description

@jeffreyjackson

I was trying to use unset, but unfortunately sets it to NULL. is there a workaround for this? beforeSave trigger is where I'm wanting to implement this. thank you

Activity

  1. JacobJT commented on Apr 20, 2018

    @JacobJT

    Does object.set('key', undefined); not do the trick?

  2. flovilmart commented on Apr 20, 2018

    @flovilmart
    Contributor
  3. RahulLanjewar93 commented on Jan 25, 2023

    @RahulLanjewar93
    Contributor

    @jeffreyjackson I am having the same issue, using unset is setting it to null in the mongodb itself
    @flovilmart is there a workaround for this?

  4. mtrezza commented on Jan 25, 2023

    @mtrezza
    Member

    @RahulLanjewar93

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions