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

UnhandledPromiseRejectionWarning #25

Open
oscarvesga opened this issue Feb 9, 2017 · 2 comments
Open

UnhandledPromiseRejectionWarning #25

oscarvesga opened this issue Feb 9, 2017 · 2 comments

Comments

@oscarvesga
Copy link

Hi, I get the next error when I try to run the basic using real data source tutorial https://learngraphql.com/basics/using-a-real-data-source/3

UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 6): 
TypeError: Cannot create property '_id' on string 'mydb.authors'
@sartios
Copy link

sartios commented Feb 20, 2017

Hi, you can try: "db.authors.insert(author)" instead of "authorsCollection.insert(author)"

@oscarvesga
Copy link
Author

The error fixed, I reinstall MongoDB and restart the GraphQL Sandbox Server with the option rs

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

2 participants