Update to use yoga and pothos

This commit is contained in:
2025-03-24 16:23:12 -05:00
parent 4b25b58c18
commit 90b9e5cf1b
16 changed files with 1767 additions and 1120 deletions

View File

@@ -1,18 +1,5 @@
import 'server-only';
import { gql } from 'apollo-server-micro';
import { gameTypeDefs, gameResolvers } from './game';
import { mergeTypeDefs } from '@graphql-tools/merge';
import { makeExecutableSchema } from '@graphql-tools/schema';
import './types/Game';
export const typeDefs = mergeTypeDefs([
gameTypeDefs
]);
import { builder } from "./builder";
export const resolvers = [
gameResolvers
];
export const schema = makeExecutableSchema({
typeDefs,
resolvers
});
export const schema = builder.toSchema();