MCPcopy Create free account
hub / github.com/Effect-TS/effect / isFormattedErrors

Function isFormattedErrors

packages/effect/src/graphql/GraphQLProtocol.ts:739–740  ·  view source on GitHub ↗
(u: unknown)

Source from the content-addressed store, hash-verified

737// As in graphql-ws's `validateMessage`, `error` carries at least one entry with
738// a `message`.
739const isFormattedErrors = (u: unknown): boolean =>
740 Array.isArray(u) && u.length > 0 && u.every((error) => isObject(error) && "message" in error)
741
742const connectionError = (cause: Cause.Cause<unknown>): TransportError => {
743 const found = Cause.findError(cause)

Callers 1

handleFunction · 0.85

Calls 1

isObjectFunction · 0.70

Tested by

no test coverage detected