插入禁止代_id我有没有_id索引加盖收集,我不需要_id可言, 但PHP蒙戈司机总是添加在插入时_id。 It is possible to suppress the automatic generation of an _id with the mongo shell 我如何可以禁止用PHP在插入的_id?
我开始使用MongoDB,特别是使用MongoDB和PHP接口来使用它。我来自MySQL,我有点迷路。 我想要做的是,有蒙戈“入口”与:username,password,email和country我想要做一个搜索,寻找: username IS to A OR email IS to B 如何能做完了? 预先感谢您!