MCPcopy Create free account
hub / github.com/hashintel/hash / badUserInput

Function badUserInput

apps/hash-api/src/graphql/error.ts:11–14  ·  view source on GitHub ↗
(
  message: string,
  extensions?: Record<string, unknown>,
)

Source from the content-addressed store, hash-verified

9) => new GraphQLError(message, { extensions: { code, ...extensions } });
10
11export const badUserInput = (
12 message: string,
13 extensions?: Record<string, unknown>,
14) => code(ApolloServerErrorCode.BAD_USER_INPUT, message, extensions);
15export const forbidden = (
16 message: string,
17 extensions?: Record<string, unknown>,

Callers

nothing calls this directly

Calls 1

codeFunction · 0.85

Tested by

no test coverage detected