Skip to content

Latest commit

 

History

History
78 lines (63 loc) · 1.04 KB

README.md

File metadata and controls

78 lines (63 loc) · 1.04 KB

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

To reproduce graphql request and nestjs throttling rate limiter error

# URL (POST)
http://localhost:3020/graphql

# QUERY
query ($_id: String!) {
    blog (
        _id: $_id
    ) {
        __typename
        _id
        description
        title
    }
}

# GRAPHQL VARIABLES
{
    "_id": "eu"
}

# Error received
{
    "errors": [
        {
            "message": "Cannot read properties of undefined (reading 'header')",
            "locations": [
                {
                    "line": 2,
                    "column": 5
                }
            ],
            "path": [
                "blog"
            ],
            "extensions": {
                "code": "INTERNAL_SERVER_ERROR"
            }
        }
    ],
    "data": null
}