Errmsg : Fieldpath Field Names May Not Start With '$'. ,

 Posted admin
Errmsg : Fieldpath Field Names May Not Start With '$'. , Average ratng: 5,8/10 7795 reviews

Microsoft Access does not restrict the use of special characters such as a number sign (#), a period (.), or a quotation mark (') in the database object names or in the database field names. However, if you do use the special characters, you may experience unexpected errors. MongoDB查询实现 笛卡尔积,Union All 和Union 功能. 此篇文章及以后的文章大部分都是从聚合管道(aggregation pipeline)的一些语法为基础讲解的,如果不理解聚合管道的话,可以先学习一下会比较容易理解.可以参考 mongoDB Documentation 的 Pipeline Aggregaion Stages.

  1. Field Path Names May Not Contain
  2. Mongodb Aggregation Field Path

I'm try get data from collection with some order:

But get next error:

Field path names may not contain

Where did I go wrong?

Field Path Names May Not Contain

Neil Lunn
105k24 gold badges193 silver badges198 bronze badges
vporoshokvporoshok

Mongodb Aggregation Field Path

Mongoerror invalid $project :: caused by :: fieldpath field names may not start with

1 Answer

So per the comment you need a MongoDB version 2.6 do do this. But of course using 2.6 this works for me:

Neil LunnNeil Lunn
105k24 gold badges193 silver badges198 bronze badges
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Not the answer you're looking for? Browse other questions tagged mongodbaggregation-framework or ask your own question.