
GraphQL Full Course - Novice to Expert
video description
Date: 2022-03-14
Related videos
Comments and reviews: 10
Zesky
#10 (53:49) - If you are getting this error ' -message-: -Cannot query field \-book\- on type \-RootQueryType\-. Did you mean \-Book\-?-, ' . You can fix it by changing the following code in the schema.js
const BookType = new GraphQLObjectType(-
name: 'Book',
fields: ( ) => (-
id: - type: GraphQLString -,
name: - type: GraphQLString -,
genre: - type: GraphQLString -
-)
-);
to
const BookType = new GraphQLObjectType(-
name: 'book',
fields: ( ) => (-
id: - type: GraphQLString -,
name: - type: GraphQLString -,
genre: - type: GraphQLString -
-)
-);
reply
#10 (53:49) - If you are getting this error ' -message-: -Cannot query field \-book\- on type \-RootQueryType\-. Did you mean \-Book\-?-, ' . You can fix it by changing the following code in the schema.js
const BookType = new GraphQLObjectType(-
name: 'Book',
fields: ( ) => (-
id: - type: GraphQLString -,
name: - type: GraphQLString -,
genre: - type: GraphQLString -
-)
-);
to
const BookType = new GraphQLObjectType(-
name: 'book',
fields: ( ) => (-
id: - type: GraphQLString -,
name: - type: GraphQLString -,
genre: - type: GraphQLString -
-)
-);
reply
AnonymousTV
If anyone has any problem connecting to MongoDB, copy the following steps:-
1. Go to clusters-
2. Click connect to clusters-
3. Click connect using MongoDB Compass
4. Copy the code
5. Write the following code
mongoose.connect('INSERT CODE HERE', -useUnifiedTopology: true, useNewUrlParser: true, useCreateIndex: true -);-
mongoose.connection.once('open', () => --
console.log('connected to database');-
-)
You're welcome :)
reply
If anyone has any problem connecting to MongoDB, copy the following steps:-
1. Go to clusters-
2. Click connect to clusters-
3. Click connect using MongoDB Compass
4. Copy the code
5. Write the following code
mongoose.connect('INSERT CODE HERE', -useUnifiedTopology: true, useNewUrlParser: true, useCreateIndex: true -);-
mongoose.connection.once('open', () => --
console.log('connected to database');-
-)
You're welcome :)
reply
Pasha
This guy does not obey any coding style at all... Just does not care for coding style whatsoever, I hate when that happens, because it seems like the guys is in a real rush. If you are in a real rush, then do something that causes that rush, and then come back and fillm a video. Plus, so much time spent to teaching React, which I don't care about. Very little time was spent towards GraphQL proper
reply
This guy does not obey any coding style at all... Just does not care for coding style whatsoever, I hate when that happens, because it seems like the guys is in a real rush. If you are in a real rush, then do something that causes that rush, and then come back and fillm a video. Plus, so much time spent to teaching React, which I don't care about. Very little time was spent towards GraphQL proper
reply
itech
In the Mutation addBook, instead of authorId, I passed in authorName and tried to find the authorId of that particular author from the Author collection and then assign it to the Book's authorId. I was able to get the document of any particular author from the collection, but I'm not able to get the ObjectId from it. Any help would be appreciated. Thanks in advance.
reply
In the Mutation addBook, instead of authorId, I passed in authorName and tried to find the authorId of that particular author from the Author collection and then assign it to the Book's authorId. I was able to get the document of any particular author from the collection, but I'm not able to get the ObjectId from it. Any help would be appreciated. Thanks in advance.
reply
roshan
if someone gets an error like -Attempted import error: 'compose' is not exported from 'react-apollo'. -. Then first install lodash in client dir, then replace
- import - compose - from -react-apollo-; -
with
- import -flowRight as compose- from 'lodash'; -
reply
if someone gets an error like -Attempted import error: 'compose' is not exported from 'react-apollo'. -. Then first install lodash in client dir, then replace
- import - compose - from -react-apollo-; -
with
- import -flowRight as compose- from 'lodash'; -
reply
Bhargav
People taking this course recently should check the Apollo Client docs before starting out with integrating GraphQL with their front end... some things have changed....
This course is AWESOME by the way! Very detailed and well explained
reply
People taking this course recently should check the Apollo Client docs before starting out with integrating GraphQL with their front end... some things have changed....
This course is AWESOME by the way! Very detailed and well explained
reply
kazi
Can anyone please help I get this error from 58:04 which is --message-: -Syntax Error: Expected Name, found String \-1\-.-. and it is because of book -id: -1- -. what would be the solution please let me know. Thanks in advance.
reply
Can anyone please help I get this error from 58:04 which is --message-: -Syntax Error: Expected Name, found String \-1\-.-. and it is because of book -id: -1- -. what would be the solution please let me know. Thanks in advance.
reply
Ansaar
Is anyone else like eerily uncomfortable with the non-monospace normal sans-serif font he uses for coding.
Literally no other problems and love the tutorial. Just super not used to that style of font for coding. ---
reply
Is anyone else like eerily uncomfortable with the non-monospace normal sans-serif font he uses for coding.
Literally no other problems and love the tutorial. Just super not used to that style of font for coding. ---
reply
Dani
Hey bro, I have a question. What if you want custom types for the GraphQL query? For example if I want a date or a JSON object, how can I do this? I've search online but I can't find anything for node...
reply
Hey bro, I have a question. What if you want custom types for the GraphQL query? For example if I want a date or a JSON object, how can I do this? I've search online but I can't find anything for node...
reply
Mahendra
thank you so much, for the excellent content, I have a question, using graphQL server how to get records with a limit or other where condition in graphQL server, pls can anyone help me
reply
thank you so much, for the excellent content, I have a question, using graphQL server how to get records with a limit or other where condition in graphQL server, pls can anyone help me
reply
Add a review, comment
Other channel videos















