# Firebase Connection methods

The Firebase connection object represent a connection instance to a configured Firebase cloud database. The following methods are exposed by the connection object to interact with remote data.

### Connect

Returns a virtual Firebase database instance that can be further used to manipulate remote data.&#x20;

```javascript
var connection = conversation.Connect( accountjson, projectid, databasename );
```

### Create

This method will insert a new object in the specified collection. The collection must exist. The object can be expressed in standard notation like { a = "hello" }. Connect will translate it to the correct Firebase document format.

```javascript
database.Create( collection, object );
```

### Delete

Deletes a document with the specified Id from the specified collection.

```javascript
database.Delete( collection, documentid );
```

### Update

Updates a document with a specific Id with the new object instance. The remote object will be completely replaced by the new instance. Remote object properties that are not in the current object instance will be removed by the update.

```javascript
database.Update( collection, documentid, object );
```

### List

This method will return a list of all the objects that are currently stored in the specified collection.

```javascript
var arrlist = database.List( collection );
```

### Get

This method will return a single object instance from the database corresponding to the id specified in documentid.

```javascript
var obj = database.Get( collection, documentid );
```


---

# 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://docs.mylinkconnect.com/actions-and-operations/integration/xenioo.bots.actions.base.executescriptaction/firebase-connection-methods.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.
