MongoDB shell执行javascript方法吗?

时间:2017-08-24 10:09:05

标签: mongodb

我在MongoDB Shell中执行db.myCollectionname.remove({}),但是我错误地运行了命令db.myCollectionname.remove,并且mongoDB在控制台中向我展示了以下方法。

  private void OnModeChosen(object sender, EventArgs e)
    {
         Country country = ((Country)(picker.SelectedItem)) // get the country object from  the picker
          picker2.ItemsSource =  GetRegions(country.CountryId ) // call the function to get the regions for that country
          picker2.ItemDisplayBinding = New Binding("RegionsName")
          picker2.SelectedIndex = 0 // not sure why I did this, I think to make sure an item was selected
        stackpicker2.IsVisible = true // make the stack layout visible with the 2nd picker
        picker2.IsEnabled = true;
    }

这似乎是一个java脚本方法?它是一个Node.js方法吗?请澄清。

1 个答案:

答案 0 :(得分:0)

请查看此链接MongoDB API,因为我们可以看到MongoDB在其 MongoDB mongo Shell

中使用JavaScript API