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

specify a second use case for $literal

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • v1.3.3
    • manual
    • 4
    • true

    Description

      can use $literal in $project to specify a new field with the value 1

      as opposed to

      { somefield: 1 }

      == which is to return a somefield

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            kay.kim@mongodb.com Kay Kim (Inactive)
            Jonathan Dahl Jonathan Dahl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8 years, 13 weeks, 1 day ago