Update to use yoga and pothos
This commit is contained in:
		@@ -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();
 | 
			
		||||
		Reference in New Issue
	
	Block a user