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

specify a second use case for $literal

      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

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

              Created:
              Updated:
              Resolved:
              10 years, 4 weeks, 6 days ago