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

Function decodeGraphqlErrors

packages/plugins/graphql/src/sdk/plugin.ts:80–81  ·  view source on GitHub ↗
(errors: unknown)

Source from the content-addressed store, hash-verified

78const decodeGraphqlErrorsBody = Schema.decodeUnknownOption(GraphqlErrorsBody);
79
80const decodeGraphqlErrors = (errors: unknown): readonly unknown[] | undefined =>
81 Option.getOrUndefined(decodeGraphqlErrorsBody(errors));
82
83const extractGraphqlErrorMessage = (errors: readonly unknown[]): string | undefined =>
84 errors

Callers 1

plugin.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected