MongoDB.ServerDescriptions
--------------------------

Fetches an server descroptions for all known servers in the topology.

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

MBS( "MongoDB.ServerDescriptions"; MongoDBRef ) 

**MBS**( **"MongoDB.ServerDescriptions";** /\* Fetches an server descroptions for all known servers in the topology. \*/  
**$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 JSON array or error.

### Description

Fetches an server descroptions for all known servers in the topology.   
Returns no servers until the client connects. Returns a single server if the client is directly connected, or all members of a replica set if the client’s MongoDB URI includes a "replicaSet" option, or all known mongos servers if the MongoDB URI includes a list of them.  
### See also

- [MongoDB.ServerDescription](MongoDBServerDescription.md)

### Example Databases

- [MongoDB/MongoDB Blog](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/MongoDB/MongoDB%20Blog.shtml#1Button92.0000000697.0000000114.0000000825.0000000LayoutObjectAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 12.3pr5](https://www.mbsplugins.de/archive/2022-06-27/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 19th June 2022 , last changed 19th June 2022

  
[MongoDB.ServerDescription](MongoDBServerDescription.md) - [MongoDB.SetAppName](MongoDBSetAppName.md)

[HTML Version](MongoDBServerDescriptions.shtml)