指定返回字段

collection.field() 参数说明 使用示例

  1. collection.field({ 'age': true })

备注:只能指定要返回的字段或者不要返回的字段。即{‘a’: true, ‘b’: false}是一种错误的参数格式