Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,192
  • Linux
  • Apple
omit.ts975 B
/* eslint-disable @typescript-eslint/no-unsafe-argument */ import type { A, L, O } from 'ts-toolbelt' import { reduce } from './reduce' import { select } from './select' type KeyMap = { [key: A.Key]: boolean } function omitList<T extends L.List, K extends A.Key>(object: T, keys: K[]) { const _keys = reduce(keys, (acc, key) => (acc[key] = true) && acc, {} as KeyMap) return select(object, (item, key) => !(key in _keys)) } function omitObject<T extends O.Object, K extends A.Key>(object: T, keys: K[]) { const _keys = reduce(keys, (acc, key) => (acc[key] = true) && acc, {} as KeyMap) return select(object, (item, key) => !(key in _keys)) } /** * Omit a subset of entries of an object or list. * * @param object to be picked * @param keys to pick * @returns */ const omit: typeof omitList & typeof omitObject = ((object: any, keys: any) => { return Array.isArray(object) ? omitList(object, keys) : omitObject(object, keys) }) as any export { omit }

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/prisma/prisma'

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