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

Function badRequest

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

Source from the content-addressed store, hash-verified

25 extensions?: Record<string, unknown>,
26) => code("CYCLIC_TREE", message, extensions);
27export const badRequest = (
28 message: string,
29 extensions?: Record<string, unknown>,
30) => code(ApolloServerErrorCode.BAD_REQUEST, message, extensions);
31export const invalidInvitationType = (
32 message: string,
33 extensions?: Record<string, unknown>,

Callers

nothing calls this directly

Calls 1

codeFunction · 0.85

Tested by

no test coverage detected