Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property '_doc' of null #5

Open
azaz0 opened this issue Feb 27, 2019 · 3 comments
Open

Cannot read property '_doc' of null #5

azaz0 opened this issue Feb 27, 2019 · 3 comments

Comments

@azaz0
Copy link

azaz0 commented Feb 27, 2019

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.

@SwyserDev
Copy link

Hey azaz,

Could you please post some more information.
Which file are you working in?
Perhaps post a screenshot of the error you are getting?

Regards
Francois

@Th3Botanist
Copy link

Hey mate,

If you haven't resolved it yet, try checking your database for previous bookings where the event is null and delete them.

Hope that works!

B

@azaz0
Copy link
Author

azaz0 commented Mar 4, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants