MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / stringArgument

Function stringArgument

packages/plugins/graphql/src/testing/index.ts:231–238  ·  view source on GitHub ↗
(
  args: Readonly<Record<string, unknown>>,
  key: string,
  fallback: string,
)

Source from the content-addressed store, hash-verified

229}
230
231const stringArgument = (
232 args: Readonly<Record<string, unknown>>,
233 key: string,
234 fallback: string,
235): string => {
236 const value = args[key];
237 return typeof value === "string" ? value : fallback;
238};
239
240export const makeGreetingGraphqlSchema = (
241 options: { readonly includeMutation?: boolean } = {},

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected