Skip to content

Latest commit

 

History

History
43 lines (37 loc) · 673 Bytes

graphql.md

File metadata and controls

43 lines (37 loc) · 673 Bytes

Install

yarn add @babel/core @babel/register body-parser compression cookie-parser cors dotenv express

yarn add --dev @babel/preset-env eslint-config-nss

yarn add graphql graphql-compose graphql-compose-mongoose mongoose apollo-server-express

Setup

.babelrc

{
  "presets": [
    [
      "@babel/preset-env",
      {
        "targets": {
          "node": "current"
        }
      }
    ]
  ]
}

.eslintrc

{
  "extends": "nss/node",
  "rules": {
    "no-console": 0,
    "max-len": 0,
    "no-restricted-globals": 0,
    "no-underscore-dangle": [
      "error",
      {
        "allow": ["_id"]
      }
    ]
  }
}