MCPcopy Create free account
hub / github.com/bautistaaa/narutoQL / formatError

Function formatError

src/server/createGraphqlServer.ts:10–15  ·  view source on GitHub ↗
(error: GraphQLError)

Source from the content-addressed store, hash-verified

8
9const createGraphqlServer = async () => {
10 const formatError = (error: GraphQLError) => {
11 return {
12 message: error.message,
13 statusCode: error?.extensions?.exception?.statusCode,
14 };
15 };
16 const schema = await buildSchema({
17 resolvers: [CharacterResolver, ClanResolver, VillageResolver],
18 });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected