On Aug 17, 12:26 pm, Kristina Chodorow <
krist...@10gen.com> wrote:
> The date field shouldn't be in {}s (or have a '$date' key). What is the
> code you're using to insert this document? It looks like you're adding an
> extra array for the date field, like:
>
> $d = array('$date' => new MongoDate());
>
> It should be something like:
>
> $d = new MongoDate();
>
> So the whole object is:
>
> array("blog_title" => "hello",
> "blog_content" => "hello world",
> "blog_url" => "hello",
> "date" => new MongoDate(),
> "blog_comments" => array(array("author"...)))
>