• JavaScriptPHPHTMLCssPythonWordPressWeb developmentLinuxMySQLAndroid
    WindowsJavaC++ / C#LayoutReactUbuntuYiiDjangoProgramming1C-Bitrix
    LaravelSystem administrationTelegramJSONDebianPostgreSQLIOSGoogleHtaccessWindows Server
    GitMacOSGoogle ChromeCMSWooСommerceBootstrapNginxSQLUnityAPI
  • Ask
  • Leaders

Categories

JavaScriptPHPHTMLCssPythonWordPressWeb developmentLinuxMySQLAndroidWindowsJavaC++ / C#LayoutReactUbuntuYiiDjangoProgramming1C-BitrixLaravelSystem administrationTelegramJSONDebianPostgreSQLIOSGoogleHtaccessWindows ServerGitMacOSGoogle ChromeCMSWooСommerceBootstrapNginxSQLUnityAPI
Programming
JavaScript PHP HTML Css Python WordPress Web development Linux MySQL Android Windows Java C++ / C# Layout React Ubuntu Yii Django Programming 1C-Bitrix Laravel System administration Telegram JSON Debian PostgreSQL IOS Google Htaccess Windows Server
Make a leaderReport
D
D
Dream2021-08-01 11:34:21
Python
Dream, 2021-08-01 11:34:21

How to find value in MongoDB object?

I have account: {messages: 0} , how do I access the messages value with find_one?
61065c001c45f759148506.png

Reply
Answer the question

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Report
A
Alexander Romanov, 2021-08-01
@dreameddd

Like this:
...find_one({'account.messages': 0})

Similar questions
P
petrro2019-10-12 20:02:58
How to pass a for loop to the forEach method without changing anything (or almost nothing) in the code except for the for loop itself? 3Reply
K
Konstantin Kavensky2017-06-22 18:14:38
Why does the line slide to another place? 4Reply
A
Andrey Tretyak2015-07-23 14:58:44
Mechanics of automatic opening/closing of curtains. Any ideas? 4Reply
S
Sergey2019-12-12 22:29:18
How to make 360 ​​degree rotation of background-image cropped by text? 2Reply
K
Kirill Morozov2017-07-17 18:31:57
How to rewrite code that works in Python 2.7 so that it works in version 3.6? 2Reply

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question

banners