Skip to main content
Glama

MongoDB MCP Server

Official
by mongodb-js
isObjectEmpty.test.ts584 B
import { isObjectEmpty } from "../../../src/helpers/isObjectEmpty.js"; import { describe, expect, it } from "vitest"; describe("isObjectEmpty", () => { it("returns true for null", () => { expect(isObjectEmpty(null)).toBe(true); }); it("returns true for undefined", () => { expect(isObjectEmpty(undefined)).toBe(true); }); it("returns true for empty object", () => { expect(isObjectEmpty({})).toBe(true); }); it("returns false for object with properties", () => { expect(isObjectEmpty({ a: 1 })).toBe(false); }); });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mongodb-js/mongodb-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server