Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-948

document NumberLong in the shell

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • None

    Description

      If you are updating a very large number (i.e., long) in the shell, you need to use the following:

      { $set :

      { 'someField' : NumberLong("20908458868526654") }

      }

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            rn@deftlabs.com Ryan Nitz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11 years, 5 weeks, 2 days ago