Loading save files done.
This commit is contained in:
		@@ -1,13 +1,17 @@
 | 
			
		||||
import { gql } from 'apollo-server-micro';
 | 
			
		||||
import { gameTypeDefs, gameResolvers } from './game';
 | 
			
		||||
import { mergeTypeDefs } from '@graphql-tools/merge';
 | 
			
		||||
import { makeExecutableSchema } from '@graphql-tools/schema';
 | 
			
		||||
 | 
			
		||||
export const typeDefs = gql`
 | 
			
		||||
  type Query {
 | 
			
		||||
    hello: String
 | 
			
		||||
  }
 | 
			
		||||
`;
 | 
			
		||||
export const typeDefs = mergeTypeDefs([
 | 
			
		||||
  gameTypeDefs
 | 
			
		||||
]);
 | 
			
		||||
 | 
			
		||||
export const resolvers = {
 | 
			
		||||
  Query: {
 | 
			
		||||
    hello: () => 'Very cool!',
 | 
			
		||||
  },
 | 
			
		||||
};
 | 
			
		||||
export const resolvers = [
 | 
			
		||||
  gameResolvers
 | 
			
		||||
];
 | 
			
		||||
 | 
			
		||||
export const schema = makeExecutableSchema({
 | 
			
		||||
  typeDefs,
 | 
			
		||||
  resolvers
 | 
			
		||||
});
 | 
			
		||||
		Reference in New Issue
	
	Block a user