const { schema } = require('./schema');
const express = require('express');
const graphqlHTTP = require('express-graphql');
const { FakeDB } = require('./persistence/fake-db');

const repo = new FakeDB();
const app = express();

app.use('/graphql', graphqlHTTP({
  schema,
  graphiql: true,
  context: { repo },
}));

app.listen(4000);
console.log('Running a GraphQL API server at localhost:4000/graphql');

@@ -125,20 +125,21 @@
 const %7B 
-Fake
+MySql
 DB %7D = r
@@ -164,15 +164,13 @@
 nce/
-fake-db
+mysql
 ');%0A
@@ -191,14 +191,37 @@
 new 
-FakeDB
+MySqlDB('haikuDB');%0Arepo.init
 ();%0A

Change server to use mysql db