MCPcopy Create free account
hub / github.com/Kong/insomnia / create

Function create

packages/insomnia-data/node-src/services/plugin-data.ts:6–8  ·  view source on GitHub ↗
(patch: Partial<PluginData> = {})

Source from the content-addressed store, hash-verified

4const { type } = models.pluginData;
5
6export function create(patch: Partial<PluginData> = {}) {
7 return db.docCreate<PluginData>(type, patch);
8}
9
10export async function update(doc: PluginData, patch: Partial<PluginData>) {
11 return db.docUpdate(doc, patch);

Callers 1

upsertByKeyFunction · 0.70

Calls 1

docCreateMethod · 0.80

Tested by

no test coverage detected