Python mongodb操作失败。。。

Python mongodb操作失败。。。,python,mongodb,Python,Mongodb,当我尝试使用Python中的新聚合框架时,我得到了下一条消息: OperationFailure: command SON([('aggregate', 'call_log'), ('pipeline', [{'$project': {u'date': '1', u'status': '1', u'number': '1', u'description': '1'}}])]) failed: exception: field path references must be prefixed wi

当我尝试使用Python中的新聚合框架时,我得到了下一条消息:

OperationFailure: command SON([('aggregate', 'call_log'), ('pipeline', [{'$project': {u'date': '1', u'status': '1', u'number': '1', u'description': '1'}}])]) failed: exception: field path references must be prefixed with a '$' ("1"
python的代码:

db.command('aggregate', 'test_collection', pipe_line=[{'$project':{u'date': '1', u'status': '1', u'number': '1', u'description': '1'}}])
这个信息是什么意思?错误在哪里


谢谢

假设,您不应该编写
'1'
,而应该编写
1
<代码>'1'(带引号)被解释为字符串,这会导致错误