title: Creating a custom module in node for GraphQL?
body: <p>I'm currently following <a href="https://www.tutorialspoint.com/graphql/graphql_environment_setup.htm" rel="nofollow noreferrer">this</a> tutorial in an attempt to learn GraphQL with React but I'm getting the following error when trying to run <code>npm start</code>:</p>
  
  <pre><code>Error: Cannot find module 'notarealdb'
  Require stack:
  - /Users/user/Workspace/intro-to-graphql/db.js
  - /Users/user/Workspace/intro-to-graphql/server.js
      at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15)
      at Function.Module._load (internal/modules/cjs/loader.js:864:27)
      at Module.require (internal/modules/cjs/loader.js:1044:19)
      at require (internal/modules/cjs/helpers.js:77:18)
      at Object.&lt;anonymous&gt; (/Users/user/Workspace/intro-to-graphql/db.js:1:23)
      at Module._compile (internal/modules/cjs/loader.js:1158:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
      at Module.load (internal/modules/cjs/loader.js:1002:32)
      at Function.Module._load (internal/modules/cjs/loader.js:901:14)
      at Module.require (internal/modules/cjs/loader.js:1044:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
      '/Users/user/Workspace/intro-to-graphql/db.js',
      '/Users/user/Workspace/intro-to-graphql/server.js'
    ]
  }
  [nodemon] app crashed - waiting for file changes before starting...
  </code></pre>
  
  <p>I'm completely new to GraphQL, so I think what's going on here</p>
  
  <pre><code>const { DataStore } = require('notarealdb');
  
  const store = new DataStore('./data');
  </code></pre>
  
  <p>is that we're creating a new DataStore that we interact with in place of interacting with a traditional database, and we're replacing <code>notarealdb</code> with a name that maps to what is found in <code>./data</code>. I guess <code>notarealdb</code> has to map to something, but the tutorial doesn't mention what it is.</p>
  
  <p>Does anyone know exactly what this tutorial means?</p>