> For the complete documentation index, see [llms.txt](https://koonkim.gitbook.io/mongodb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://koonkim.gitbook.io/mongodb/2.0/pymongo/syntax-cheat-sheet....md).

# Syntax

PyMongo에서 사용하는 문법은 Mongo Shell에서 사용되는 문법과 비슷하게 생겼지만 다시 외워야 할 필요가 있다. 굉장히 화가나는 일이다.

이 부담을 조금이나마 덜기 위해서 요령을 알려주면 (모두 같지는 않다),

* 대문자로 시작되는 것은 \_로 대체된다는 점
  * findOne->find\_one()&#x20;
* string은 모두 quote mark 를 붙여줌

두 가지 내용을 생각하면서 문법들을 보기 시작하면 그나마 쉽게 암기가 될 것이다.&#x20;
