Initial commit.
This commit is contained in:
		
							
								
								
									
										13
									
								
								src/graphql/schema.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								src/graphql/schema.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
import { gql } from 'apollo-server-micro';
 | 
			
		||||
 | 
			
		||||
export const typeDefs = gql`
 | 
			
		||||
  type Query {
 | 
			
		||||
    hello: String
 | 
			
		||||
  }
 | 
			
		||||
`;
 | 
			
		||||
 | 
			
		||||
export const resolvers = {
 | 
			
		||||
  Query: {
 | 
			
		||||
    hello: () => 'Very cool!',
 | 
			
		||||
  },
 | 
			
		||||
};
 | 
			
		||||
		Reference in New Issue
	
	Block a user