Skip to content

Cannot read property '_doc' of null #5

Open
@azaz0

Description

@azaz0

Hello
I have some issue with taking user._doc. I used the same code. I check it line by line - letter by letter.
It shows when i am trying to use query:
query { events { _id title description date price creator { _id email } } }
or trying to get creator id on frontend - there code is also the same.
my package.json file: `{
"name": "graphql-react-ev-booking",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo "Error: no test specified" && exit 1",
"start": "nodemon app.js"
},
"author": "",
"license": "ISC",
"dependencies": {
"bcryptjs": "^2.4.3",
"body-parser": "^1.18.3",
"express": "^4.16.4",
"express-graphql": "^0.7.1",
"graphql": "^14.1.1",
"jsonwebtoken": "^8.5.0",
"mongoose": "^5.4.15"
},
"devDependencies": {
"nodemon": "^1.18.10"
}

  • }`

I was tried to fix it by myself for two days i will still try.
I appreciate if You look at it.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions