Skip to content

Instantly share code, notes, and snippets.

@tychoish
Created August 29, 2013 22:08
Show Gist options
  • Save tychoish/6384012 to your computer and use it in GitHub Desktop.
Save tychoish/6384012 to your computer and use it in GitHub Desktop.
.. code-block:: javascript
db.runCommand( { aggregate: "records",
pipeline: [ { $project: { amount:
{ $eq: [ "$42", { $literal: "$42" } ] } }
} ] } )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment