Mongodb - How to select only “n” columns

后端 未结 0 960
太阳男子
太阳男子 2020-12-11 03:56

I have a collection with 15 columns and want to bring only 4, but if I use this it brings all columns

tb.find_one({\'column1\':\'value\'},{\'_id\':1, \'column         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题