MongoDB.Ping
------------

Sends ping command.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [MongoDB](component_MongoDB.md) | [13.4](newinversion134.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "MongoDB.Ping"; MongoDBRef ) 

**MBS**( **"MongoDB.Ping";** /\* Sends ping command. \*/  
**$MongoDBRef**) /\* The reference number for the mongo connection.e.g. $MongoDB \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| MongoDBRef | The reference number for the mongo connection. | $MongoDB |

### Result

Returns OK or error.

### Description

Sends ping command.  
Great to check if connection is there and/or trigger reconnection.  
### Examples

Ping server:

 Set Variable \[ $r ; Value: MBS ( "MongoDB.Ping"; $Mongo ) \]   
Show Custom Dialog \[ "Result" ; $r \]  
### See also

- [MongoDB.Find](MongoDBFind.md)
- [MongoDB.List](MongoDBList.md)
- [MongoDB.Time](MongoDBTime.md)

### Release notes

- **Version 13.4**
    - Added [MongoDB.Ping](https://www.mbsplugins.eu/MongoDBPing.shtml) function.

### Blog Entries

- [News in MBS FileMaker Plugin 13.4](https://www.mbsplugins.de/archive/2023-09-20/News_in_MBS_FileMaker_Plugin_1/monkeybreadsoftware_blog_filemaker)
- [Neues MBS Plugin 13.4 für Claris FileMaker](https://www.mbsplugins.de/archive/2023-09-12/Neues_MBS_Plugin_134_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 13.4 for Claris FileMaker - More than 7100 Functions In One Plugin](https://www.mbsplugins.de/archive/2023-09-12/MBS_Plugin_134_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 13.4pr1](https://www.mbsplugins.de/archive/2023-08-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 19th July 2023 , last changed 19th July 2023

  
[MongoDB.OpenDefaultDatabase](MongoDBOpenDefaultDatabase.md) - [MongoDB.Release](MongoDBRelease.md)

[HTML Version](MongoDBPing.shtml)