Skip to content

MongocampVersion ​

Displays the connected MongoCamp server's name and version as a UBadge, using the $mongocampVersion value provided by the runtime plugin. Shows a neutral "unavailable" badge when the server cannot be reached. Since server 2.8 the version answer also names the server core that runs (core: { name, version }): the badge's tooltip says it, and the badge adds · core v2.8.0 only when the core's version differs from the application's (an application that embeds the core under its own name and version).

Once signed in (or in server proxy mode) a second badge shows the version of the MongoDB server behind MongoCamp. Administrators (and proxy mode) get the full version (MongoDB 9.0.4) from GET /system/info, which is admin-only; everybody else gets the major version (MongoDB 9) from GET /system/capabilities — also the fallback when the full version cannot be read. A refused request just leaves that badge out — no error.

Usage ​

vue
<template>
  <MongocampVersion />
</template>

Props ​

PropTypeDefaultDescription
hideDatabasebooleanfalseHide the MongoDB version badge (and skip its request)

Released under the MIT License.