-
Notifications
You must be signed in to change notification settings - Fork 290
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
Lesson 1 Error: Type "Query" was defined more than once. #27
Comments
src/server.js
|
Hi @LeeMellon, does the solution code to this exercise help at all? https://github.com/FrontendMasters/intro-to-graphql/blob/lesson-1-solution/src/server.js |
Going through the same lesson and also seeing this issue. There are slight differences in the code the instructor has in the first lesson vs the repo when you clone it. |
|
Okay, my issue was resolved with installing bcrypt and running the mongodb server. |
same issue |
Yes, there are slight differences between the code in the video and the repo. I spent some time to figure it out but I finally managed to solve it by modifying the db.js file and putting an _ before the word Query in the server.js db.js: export const connect = (url = options.dbUrl, opts = {}) => { server.js: export const start = async () => {
` const server = new ApolloServer({ |
Following along with the first lesson and getting the following error.
The text was updated successfully, but these errors were encountered: