• 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
G
G
gelerum2021-10-11 13:11:47
MongoDB
gelerum, 2021-10-11 13:11:47

How to insert an empty list in MongoDB using Go?

How to insert an empty list like this:

{

    "cars": [

    ]

}

Reply
Answer the question

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Report
G
gelerum, 2021-10-11
@gelerum

bson.D{{"cars", bson.A{}}}

Similar questions
A
Adam2015-05-15 22:04:21
Drupal: Create your own template for a single article type of material? 2Reply
I
Iqbol2015-05-14 09:04:02
How to send data from a Flask/MongoDB web application to an email address? 2Reply
R
Rustem Vorozheikin2015-05-19 20:31:13
For what reasons can a query in mongodb like db.presets.find({}, {"name":1}) not work? 1Reply
A
AlexeyZernov2015-05-22 17:14:17
MongoDB sampling on sharding, searching in parallel for all nodes? 4Reply
B
bpGusar2019-10-11 16:42:13
How to execute multiple queries to mongodb and return only after all are completed? 1Reply

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question

banners