Skip to content
Snippets Groups Projects
Commit 4c6a3855 authored by Leon A. Okida Gonçalves's avatar Leon A. Okida Gonçalves
Browse files

Change structure of the project

parent 421863e5
No related branches found
No related tags found
No related merge requests found
console.log('oi'); const { ApolloServer, gql } = require('apollo-server');
\ No newline at end of file
const typeDefs = gql`
type Query {
hello: String
}
`;
const resolvers = {
Query: {
hello: () => "Lueinda!"
}
};
const server = new ApolloServer({ typeDefs, resolvers });
server.listen().then(({ url }) => console.log(`Server started at ${url}`));
\ No newline at end of file
File moved
import {UserInterface} from "./User" import {UserInterface} from "./Classes/User"
export class ErrorHandler { export class ErrorHandler {
...@@ -11,8 +11,8 @@ export class ErrorHandler { ...@@ -11,8 +11,8 @@ export class ErrorHandler {
throw new Error("Invalid user email"); throw new Error("Invalid user email");
const newUser: UserInterface = { const newUser: UserInterface = {
userName = input.name, userName: input.name,
userEmail = input.email userEmail: input.email
} }
return newUser; return newUser;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment