• 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
S
Shyrick2015-04-24 16:17:47
Which database command corresponds to the mongo shell find() method? 2Reply
A
Abra Kadabra2019-09-19 17:55:35
Why does async await return undefined as a result of a database query? 1Reply
A
Alexander2017-04-20 02:01:11
Is there a tutorial on how to easily build a nodeJS + mongo application? 1Reply
M
mityayka12021-04-05 09:50:02
Is it possible to set connection close time with mongoy? 0Reply
D
DDwrt1002019-09-26 11:00:37
How to put an arbitrary object into MongoDB using java? 1Reply

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question

banners