From 802dcc9f5a4b2f0824e2600cd080d33691056d16 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 28 Sep 2024 16:40:08 -0700 Subject: feat(api): set up graphql api --- src/graphql/hello/resolvers.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/graphql/hello/resolvers.ts (limited to 'src/graphql/hello/resolvers.ts') diff --git a/src/graphql/hello/resolvers.ts b/src/graphql/hello/resolvers.ts new file mode 100644 index 00000000..f882765f --- /dev/null +++ b/src/graphql/hello/resolvers.ts @@ -0,0 +1,10 @@ +import type { WithIndex } from '../$types'; +import type { Resolvers } from './$types'; + +export const resolvers: WithIndex = { + Query: { + hello() { + return 'Hello SvelteKit!'; + } + } +}; -- cgit v1.2.3