#21 Improving Queries & Bugfixing | Build a Complete App with GraphQL, Node.js, MongoDB and React.js

preview_player
Показать описание
Time for some improvements and bugfixing. We mainly should fix two things, one is related to the dataloader and the other one is something we carry around for quite a while now!

----------

----------

• And you should of course also follow @academind_real.

See you in the videos!

----------

Рекомендации по теме
Комментарии
Автор

Hey Max!! Thanks for your awesome series on React + GraphQL. Really want to see a video on uploading images through graphql.

pranavsuresh
Автор

I was waiting for next video. Sir please teach us how we can upload an image with graphql too. Maybe in a separate video.

KochharAmandeep
Автор

Thanks again for this serious... I mean series ;). I look forward to other content you may provide. Stay golden, don't change.

stynard
Автор

Hey max, awesome video as always. Just a curiosity, what are your thoughts about Gatsby? Everyone seems to have started using it, is it worth of his own course? Thx anyway

Deliverant
Автор

Hi Max! There was still an issue in my code when used the loadMany method.
The error message is "DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise of an Array of the same length as the Array of keys."Could you help me figure it out.

randyx
Автор

Once again thank u for this awesome video and series, Max

AbhishekKumar-mqtt
Автор

Hi Max, how are you??

Look, i´m having this error when changing the call for loadMany at createdEvents:

DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise of an Array of the same length as the Array of keys.

Do you know why?

kalilmvp
Автор

When i tried this: query{
events{
date
_id
title

creator{
email
createdEvents{
title
}
}

}
}, I got this error: DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise of an Array of the same length as the Array of keys...Not sure if this caused by loadMany? or sth else, as i'm new to dataLoader. Have anyone found the solution for this? Could you please advise?
Many thanks

ttngocthao
Автор

Hi Max! Thanks for clearing my doubts regarding dataloader. Can you make a video of the same with mongodb.js

burkethokchom
Автор

I ran into an error in my App and I have followed along from Day 1 and double check the repos. I can't book or create events anymore. I downloaded the current Repo #21 npm installed frontend and backend. I can log in but get an error for the Modal confirm handler in Event.js "resData.data.createEvent is null", and it is not showing any bookings. The error is from line 96 in Event.js _id: resData.data.createEvent._id . Is this happening because of the changes? I cleared my database for testing. No joy. Any help would be appreciated thanks.

tomcatbuzz
Автор

What if I set graphql in the backend to false? I mean everyone can see and build queries with that. Will my queries in the frontend still work then?

mionel
Автор

when will you cover graphql client ? i mean apollo !

khalidkhan
Автор

Hi Max thanks for this great job, i have two questions:
1. for all data we fetch from server (or send) : should we move the logic to context api ? let say for example eventsContext.js, bookingContext.js
2. Any recommendation about best library to use instead of sending manually post requests ?

parrou
Автор

very good ... can you do a video about storybook?

ahmadreza
Автор

Awesome stuff. All I can say today is Click Subscribe and turn on the notification For new educative stuff. This channel is Super educative.

gilbertngeywo
join shbcf.ru