# 🏃‍♂️ Quick start

## Do you like shortcuts?

If the answer is yes then you are on the right page. Quick start section can help you get your hands dirty right on as it contains samples with the most common CRUD :heavy\_plus\_sign::heavy\_minus\_sign::pencil: :x: operations when dealing with any database. You will learn step by step how to:

1. Connect to a MongoDB instance
2. List all databases existing in the instance
3. List all collections existing in a specific database
4. Insert one or many documents at once in a collection
5. Search for and read documents from a collection
6. Update one or more documents in a collection

{% hint style="success" %}
Quick start is recommended for those who have never used the `MongoDB .NET` driver
{% endhint %}

![Quick Start with MongoDB .NET driver](https://2076499567-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M1LyPqYq4CEFXnjdYHF%2F-M4dwbcmZBWzwnQh05At%2F-M4dxOpBkfSizQMD_P7x%2Fquick-start.png?alt=media\&token=de97ea3a-49b0-49ca-94f5-ece337c14ebc)

## Install Nuget packages

To start writing MongoDB queries using C# , you need to install the **MongoDB.Driver** :oncoming\_automobile: Nuget package in your project with one of the following ways:

### dotnet CLI

```csharp
dotnet add package MongoDB.Driver
```

### Visual Studio

Open the *Nuget Package Manager*, search for and install the package.

### Nuget Package Manager

```csharp
Install-Package MongoDB.Driver
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://chsakell.gitbook.io/mongodb-csharp-docs/getting-started/quick-start.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
