Null :

 Syntax{“x”: null}     

Boolean :

  Syntax: {“x”: true}

Integer :

Syntax: {“x”: 4}

String :

Syntax: {“x”: “foobar”}

Date :

    1. Date ()
    2. New Date ()
    3. New ISO Date ()

Syntax: {“x”: “new Date ()”}

Regular expression :

Syntax: {“x”: /foobar/i ()”}

Array :

Syntax: {“x”: [“a”, “b”, “c”]}

Object ID :

Syntax: {“x”: objectId ()}

Binary Data :

Code :

Syntax: {“x”: function() { /* …*/ }}

 

Categorized in:

mongodb

Tagged in:

, , , , , , , , , ,

Share Article:

Leave a Reply

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Powered By
100% Free SEO Tools - Tool Kits PRO