diff --git a/.gitignore b/.gitignore index fa441cd3..67431826 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ node_modules npm-debug.log yarn-error.log -.vscode \ No newline at end of file +.vscode +chatty.sqlite \ No newline at end of file diff --git a/server/index.js b/server/index.js index 8f472fe4..a35f840f 100644 --- a/server/index.js +++ b/server/index.js @@ -1,9 +1,14 @@ import { ApolloServer } from 'apollo-server'; import { typeDefs } from './data/schema'; import { mocks } from './data/mocks'; +import { resolvers } from './data/resolvers'; const PORT = 8080; -const server = new ApolloServer({ typeDefs, mocks }); +const server = new ApolloServer({ + resolvers, + typeDefs, + // mocks, +}); server.listen({ port: PORT }).then(({ url }) => console.log(`🚀 Server ready at ${url}`));