GraphQL Crash Course With Full Stack MERN Project

Поділитися
Вставка
  • Опубліковано 14 жов 2024

КОМЕНТАРІ • 489

  • @deivitsalazar1991
    @deivitsalazar1991 2 роки тому +225

    I started learning development with Brad about 5 years ago.. got my job as a software engineer 2 years ago, after one year a left for 40% increase in salary. Brad was the reason I got started and always excited when he does one of these. I started to learn MERN, however been working with python/flask/django and Vue lol It's time for me to go back to roots and relearn MERN with GraphQL. So excited

    • @Devilman91
      @Devilman91 2 роки тому

      congratulations man!

    • @muxammad2777
      @muxammad2777 2 роки тому

      @Reynaldo are you sure yo dont need a man from your class in the company ? lol

    • @guitaredenx6528
      @guitaredenx6528 2 роки тому

      @Reynaldo why mern

    • @tapank415
      @tapank415 2 роки тому +2

      and i'm a django guy switching to nestjs, graphql & prisma!

    • @When_am_I
      @When_am_I 2 роки тому

      Awesome!

  • @holliegolitely6245
    @holliegolitely6245 2 роки тому +58

    I was just getting into learning the MERN stack and have been interested in GraphQL. This is right on time.

  • @kathleenmccarthy6347
    @kathleenmccarthy6347 2 роки тому +8

    I went through this tutorial twice in the last two weeks and created the app twice. This tutorial was so helpful. I was able to work through all of my stuck points and the second time around I recognized the errors I made the first time. Thanks so much for this.

  • @webdevluc
    @webdevluc 2 роки тому +18

    Awesome course Brad. So generous of you to share this much high quality work for free

  • @Draco246
    @Draco246 2 роки тому +6

    This is awesome. I was looking into graphql and, lo and behold, you produced a course that implements it. Thank you!

  • @aguynamedandre350
    @aguynamedandre350 Рік тому +4

    Absolutely wonderful! This was one of the first projects that I took my time going through. I wanted to really make sure I understood what was going on and how to do things. I've paused the video, tried it myself, then played it back to see if I was remotely close. This 3 hour video took over 6 hours for me to complete over a span of 1 week.
    It was WELL worth it! Even through I don't feel like I remember everything(which is okay) I feel like a lot of the open loops are now closed and I'm a much better developer because of it. Thanks Brad for everything!

  • @OmnispectiveHub
    @OmnispectiveHub 2 роки тому +2

    DUDE I was actually looking for a quality tutorial with this exact stack THANK YOU BRAD

  • @carosendahl
    @carosendahl 2 роки тому +2

    Hey Brad, Just installed the Github code after watching this video twice. At some point I will send a donation your way. I needed to place the .env file in the base of the server folder as opposed to the base folder, and change the Mongo URI to "mongodb+srv://...", but other than that, runs great!

  • @yohannesaregay6978
    @yohannesaregay6978 2 роки тому +2

    1:14:46 i don't want to correct you but it might help someone. "By default, findOneAndUpdate() returns the document as it was before update was applied. If you set new: true, findOneAndUpdate() will instead give you the object after update was applied." and thanks for the awsome content!!!

  • @Unknown-ek9gl
    @Unknown-ek9gl 2 роки тому

    The best tutor, easy to follow, zoomed code, clear explanation, ideal speed and voice. Thank you!

  • @gbrachetta
    @gbrachetta 2 роки тому +14

    Hey Brad! There's a new setting in the react extension to prevent the import of "React" (what you used to do with the underscore before). Just to to the React Snippet settings and uncheck "Controls if snippets should add import React from 'react' at the top of components".

    • @naylord5
      @naylord5 Рік тому

      Thank you mate! Great tip

  • @zaidshaikh2536
    @zaidshaikh2536 2 роки тому +4

    Cannot thank you much for this. Just about to complete your MERN playlist & you've dropped this 🔥

  • @demawobass
    @demawobass 2 роки тому +1

    Finished the whole project, What a perfect way to understand Graphql.

  • @michaelaboah1322
    @michaelaboah1322 2 роки тому +33

    I really appreciate this kind of content especially because alot of similar tuts are 2 years out of date, but I can’t help but feel that not using TypeScript was a lost opportunity. I understand the different pros and cons of TS vs vanilla, and I am a sucker for compilation errors but projects on this kind of scale benefit a lot from type checking. A personal opinion that’s not gonna stop me from following along as best I can, but I will try and use TS. If any thing comes out of it I would mind sharing source code for anyone who is interested.
    But again thanks for an up to date guide with in demand technologies!

    • @Saurabhkumar-bn3dl
      @Saurabhkumar-bn3dl 2 роки тому +9

      Please do share the TS source code with us whenever you are done. It will be a great help to us.

    • @milliorn
      @milliorn Рік тому +6

      Typescript generally takes away the focus or becomes the focus when involved in these videos. I think that is why it was left out here. GraphQL is the focus here, not type checking.

    • @michaelaboah1322
      @michaelaboah1322 Рік тому

      @@milliorn That's definitely a sensible opinion, and I can see where your coming from. My rebuttal would be every statically typed language that supports GraphQL. Also GraphQL is typed, that's what the SDL is provides. In fast there are great synergies that can be gained using a tool like Type-Graphql. IMHO

  • @stavroskefaleas6320
    @stavroskefaleas6320 2 роки тому +6

    The best graphql tutorial from the best tutor.
    Brad keep an eye please on remix run.
    It is the next big thing I think.

    • @TraversyMedia
      @TraversyMedia  2 роки тому +2

      I did a crash course on it a few months ago. I think you're right.

  • @alikucukavci6883
    @alikucukavci6883 Рік тому

    Your videos were the first I watched before I started my journey in web technologies. It has been 4 years ago since I watched your crash course videos. I even missed your voice!

  • @bertrandfossung1216
    @bertrandfossung1216 2 роки тому +8

    As a web security engineer and an API enthusiast this course is just what will enable me move to the next level. Thanks so much Brad. Your content is always lit 🔥

  • @universecode1101
    @universecode1101 2 роки тому +23

    As a Js - React frontend developer I can only say that GraphQL is now really one of the trends right now. By now a frontend needs to know a little bit of Backend, and for me that I am studying it, the backend is different but an incredible world. Brad thanks for this tutorial 😜

    • @TraversyMedia
      @TraversyMedia  2 роки тому +3

      Personaly, I enjoy working in the backend when it comes to creating APIs, etc. Even more so than the frontend. It's just when we start getting into DevOps, etc, I don't have as much interest.

    • @universecode1101
      @universecode1101 2 роки тому +3

      @@TraversyMedia Totally agree with you Brad, maybe because we create a lot in frontend and with the API, we get data and we can see it on the screen and play with it. With devOps, Docker, Kubernetes wooo, it's cool but it's really very different and honestly I'm not passionate about it.

    • @PsyberMind
      @PsyberMind 2 роки тому

      @@TraversyMedia I actually just transitioned to SRE/DevOps from being a developer. Personally I love automation and infra provisioning, but I also am still in love with development. Your videos give me the best of both worlds.. I stay strong in my Dev-Fu with you, and then put my newly learned SRE Skills into play afterwards 😊

  • @eladbar1579
    @eladbar1579 2 роки тому +7

    Absolutely on the Pointttt !!! Love your teaching style Brad

  • @vonderklaas
    @vonderklaas 2 роки тому +1

    You are magician. I've been interested in GraphQL for some time, and this tutorial is "just what the doctor ordered"

  • @Kevin-jc1fx
    @Kevin-jc1fx 2 роки тому +5

    I am just getting to know GraphQL and diving in seriously. I am currently going through the book "Learning GraphQL" by Eve Porcello and this tutorial is incredibly timely for me as it will surely help me have a better grasp of all the concepts. Thank you so much for all these courses, Brad.

  • @christopheanfry2425
    @christopheanfry2425 2 роки тому +5

    Thank you so so much for this tutorial Brad waiting for so long to have a great tutorial like that. Look forward to jumping into it when will have more time 🙏💪🏻

  • @tenzinwoeser6842
    @tenzinwoeser6842 Рік тому

    I love how you made it so simple. I am thinking of adding an authentication feature on top this. Thanks.

  • @Bowlofyogurt
    @Bowlofyogurt 2 роки тому +1

    It blows my mind that you give this away for free. Thank you for what you do.

  • @skyenolimit6209
    @skyenolimit6209 2 роки тому +3

    @Traversy Media 1:23:16 you can now use rafc (React Arrow Function Component) to use a functional component without having to import React. It could be different for JSX (I typically use just regular .js files for my code).

  • @omotolamahlangu107
    @omotolamahlangu107 2 роки тому +1

    Love using GraphQL. Here for the algorithm. Thanks for another solid tutorial Brad.

  • @bradenmitchell3265
    @bradenmitchell3265 2 роки тому +10

    1:23:14 the snippets extension now has a dedicated setting for whether to import react or not. The setting is called "Import React On Top", in vscode settings.json add "reactSnippets.settings.importReactOnTop": false. That said there is currently a bug where it still imports React even if it's set to false.

    • @TraversyMedia
      @TraversyMedia  2 роки тому

      Awesome, thank you

    • @ezzzie
      @ezzzie 2 роки тому

      I've been wondering about this for a while now. Thanks!

    • @UmerFarooq-j4d6j
      @UmerFarooq-j4d6j 10 місяців тому

      didn't work for me still import the react

  • @konstantinosvoulgaridis8464
    @konstantinosvoulgaridis8464 2 роки тому +1

    Hello Brad! Excellent tutorial as always dude! One thing to mention is that I am using Typescript and following the video. It seems that you don't have to pass the args on addProject() and in the other cases as well as when you define the addProject mutation in the Component the state vars are being passed directly there
    const [addProject] = useMutation(ADD_PROJECT, {
    variables: { name, description, clientId, status },
    ...
    so no need to place them as args when invoking addProject(). Same thing for addClient() and deleteClient(). Only prerequisite is to have declared the state vars above the useMutation code chunk.
    Also It would be useful if you could reuse the project form in one component to both create and update a project.
    Best,
    Keep up the good work

  • @piyushaggarwal5207
    @piyushaggarwal5207 2 роки тому +6

    Awesome! I would love to enhance my knowledge using this tutorial as well. Though I wish it had come five days sooner.

  • @juniortraore-qr3xr
    @juniortraore-qr3xr 11 місяців тому

    Спасибо за подробное видео ! Без лишней воды, все по делу. Связка хорошо работает , рекомендую 👍Автор буду следить за вами дальше , успехов !!

  • @bhaskarchetty5419
    @bhaskarchetty5419 Рік тому +1

    Being a MERN developer(Thanks to Brad!) I wanted to broaden my knowledge in GraphQL. This was really a good introduction to GraphQL where MERN developers can just dive in and get their hands dirty. The amount of information is just enough to get an understanding of GraphQL and its workings. Thank you so much for this Brad! Can you also please upload an advanced video course on GraphQL that uses the Apollo server and has features likes authentication, authorization, pagination, etc.

  • @pedrofrohmut2471
    @pedrofrohmut2471 2 роки тому +2

    Hi.
    Simple fix for the status (edit project form), that worked here. (03:05:00 aprox).
    const getStatusValueFromString = str =>
    str === "Not Started" ? "new" : str === "In Progress" ? "progress" : "completed"
    thx for the video

  • @nicholas2751
    @nicholas2751 2 роки тому

    This came out at the perfect time, I couldn't find any recent tutorials that were this helpful.

  • @SvetaSveta-ms4hi
    @SvetaSveta-ms4hi 2 роки тому

    Oh my Gosh, I swear I've been looking for a decent GraphQL tutorial a couple of days and failed to find one. I'm just on cloud nine. I can't thank you enough! 😘😘😘

  • @ravenMK_
    @ravenMK_ 2 роки тому +1

    About the react snippets, they have provided option in the settings to enable or disable "import React from 'react'" so you can use the same command "rfc". I find this approach better.

  • @Tarun8336
    @Tarun8336 2 роки тому

    Sir, I have purchased your "MERN stack e-commerce site from scratch" course.
    Sir, I have learnt a lot from you. Your way of explanation is excellent. I have taken others course also from youtube as well.

  • @destinlee
    @destinlee 2 роки тому

    OOOO a big one!!! Going to follow along in TypeScript 😎 Thanks as always Brad. Hope you and the family are having a good start to y'alls summer!

  • @davetodream
    @davetodream 2 роки тому +6

    Would be interested in a paid Nextjs + Graphql course with auth and a cms!

  • @andrewng9950
    @andrewng9950 2 роки тому +2

    Thank you so much for sharing! I hope you make a paid full one that includes Auth, Streaming, JWT management and all the good stuff, Thank you so much once again!

  • @hnaqvi719
    @hnaqvi719 2 роки тому

    This guy Is a legend I learned web development from him and got a job with DOD

  • @judevector
    @judevector 2 роки тому +1

    Wow I have been waiting for a video like this currently in line with what am learning

  • @joefogiato8993
    @joefogiato8993 Рік тому +3

    Note for Apoollo Cache (Around 1:45:00) - In the DELETE_CLIENT mutation, The parameters for the deleteClient() method should be deleteClient($id: String!) not deleteClient($id: ID!)

    • @abdulsamadgomda3035
      @abdulsamadgomda3035 10 місяців тому

      This isn't entirely accurate as in the backend, the type for id is set as GraphQLID

  • @0xccd
    @0xccd 2 роки тому

    What a "coincidence" for some of us who have been just starting with GraphQL
    Thanks buddy!

  • @KejriwalBhakt
    @KejriwalBhakt 2 роки тому +9

    I don't know why, but I find frontend kinda tough compared to backend. Maybe I am good at DSA and SQL and that's the reason I love doing stuff on the backend. GraphQL looks great. I am used to the rest API format. REST api gives a more formal look to our code base. Haven't worked with GraphQL so can't say the same about it.

    • @TraversyMedia
      @TraversyMedia  2 роки тому +5

      I kind of feel the same way. I think what makes the frontend tough is managing state in the browser environment. If I had to put it in simple terms.

    • @KejriwalBhakt
      @KejriwalBhakt 2 роки тому

      @@TraversyMedia Exactly!! I am always in 2 minds when and where to use "usestate" and "useEffect".

    • @cristianscript5649
      @cristianscript5649 2 роки тому

      Frontend is the direct end user interaction that may cause many bugs you have to consider reactivity with state. Performance and very crucial good styling. Both desktop and responsive. So I consider front-end is way harder than backend

  • @stefanstefanovic8060
    @stefanstefanovic8060 2 роки тому

    Needed a comprehensive guide for GraphQL, you did a great job, Brad!

  • @lioneljones8080
    @lioneljones8080 Рік тому

    Great video my man. I have taken some of your other courses on Udemy and they are all good. You are by far one of my favorite teachers whenever I want to pick up a new language/framework to add to my toolbox. Thanks again

  • @abaisden
    @abaisden 2 роки тому

    Perfect timing I was going to look for an up to date GraphQL course so I could relearn it. This is going to be the one!

  • @pygemssoftware4254
    @pygemssoftware4254 2 роки тому

    brad is not only a genius and thorough in his work but his recent Revelations about his struggles before his meteoric success shows a very clean frank straightforward do gooder.

  • @Salah-YT
    @Salah-YT 2 роки тому +1

    thank u so much Mr.Brad, it was an amazing project

  • @linmus2370
    @linmus2370 2 роки тому

    Thanks a billion! You made my day! I absolutely adore your tutorials and the way you approach teaching new stuff. Have a lovely day!

  • @ontheruntonowhere
    @ontheruntonowhere 2 роки тому +1

    I believe it's not necessary to pass form parameters to addClient(), addProject() and updateProject() inside handleSubmit(). These values are taken directly from state inside useMutation()'s options variables object. I was getting a squiggly line and wanted to find out why.
    Btw, thank you so much for your tutorials, Brad. They are absolutely aces.

    • @diego_elohim
      @diego_elohim Рік тому

      Yep, it is not necessary if you are passing it in the variables attribute.

  • @RaviYadav-xg2hy
    @RaviYadav-xg2hy 2 роки тому

    Great video!!!
    One correction: setting { new: true } does not create a new entry if matching id was not found. It is done using { upsert: true }

  • @Nil-js4bf
    @Nil-js4bf 2 роки тому

    Quite a lot of different techs covered at a basic level here but enough to get an idea of how things work. One of the things I like about using GQL is the codegen tools for it if you use typescript. It's awesome to be able to write a query and then have codegen automatically create React hooks for you that give a typed response.

  • @case_tips
    @case_tips 2 роки тому +2

    This is what I am waiting for, Thank you very much

  • @emkay2
    @emkay2 Рік тому

    I liked seeing GraphQLObjectType way of creating types as opposed to its higher-level alternatives more commonly used in tutorials.

  • @amruthavs2851
    @amruthavs2851 7 місяців тому

    Thank you this project helps to understand how Graphql works.

  • @DineshKumar-kc6oj
    @DineshKumar-kc6oj 2 роки тому

    Hi Brad...am Dinesh from India.. I like your courses & I bought your courses from udemy it's really helpful and upgrading my career. Now am working with MNC company. Once again special thanks to Brad. Your support is important for us. Keep doing your videos. Thumbs up 👍

    • @RudraSingh-pb5ls
      @RudraSingh-pb5ls Рік тому

      Don't you think MNCs require you to know these stuff related to MERN in much more depth than what is being taught to us on YT videos ?
      Just asking for ur opinion cause i haven't landed into a job yet 😅

  • @n3wtou
    @n3wtou 2 роки тому

    Right on time. Amazing work Brad. I have being looking forward to learning graphql.

  • @stonecomstock
    @stonecomstock 2 роки тому

    Awesome timing for this video release!! I only wish I would have found your channel sooner

  • @CarolinaNT
    @CarolinaNT 2 роки тому +2

    exactly what I need, as always!! Thanks Brad!

  • @gyros9162
    @gyros9162 Рік тому

    I've made it through whole this amazing tutorial! And now my lead says that our backed will be based on SQL database. Anyway on the client side this might help me a lot! Thank you, Brad!

  • @hassanmirza2392
    @hassanmirza2392 Рік тому

    Brad, you explain things very well. Thanks for your education material.

  • @malikbasitmaqsood
    @malikbasitmaqsood 2 роки тому +2

    You made it really simple and interesting to learn!

  • @nickbenz2143
    @nickbenz2143 Рік тому

    Absolutely amazing.!!! No question at all I would like to express my words. First of all I Salute you 🙋‍♂You are a Honest and valuable personality I wish you success in your further path. Long Live ✊ I bet you all will not see any one like him the real Legend. Thank You.✌

  • @josephwong2832
    @josephwong2832 2 роки тому

    The GOAT of tutorials (Traversey) makes a comeback!

  • @jacobberry1355
    @jacobberry1355 Рік тому +2

    Awesome course, really appreciate the video!
    Curious if by any chance you would be able to show how to deploy this to something like Netlify or Heroku. I am having troubles getting it going, and wasn't sure if maybe I am missing something specifically with GraphQL because usually with REST I don't have problems with deployment. Thanks!

  • @supercrunch3367
    @supercrunch3367 2 роки тому +1

    Hey Brad, are you gonna make a segment for the deployment part of this?

  • @hoyinli7462
    @hoyinli7462 2 роки тому +1

    thx for your video! Could you please also show us how to deploy the project? Thank you!

  • @alaribebright9021
    @alaribebright9021 2 роки тому +1

    Hea Brad, thanks for this. Something is rare though, next.js and graphql endpoint with graphql subscription setup.

  • @derekchan1045
    @derekchan1045 2 роки тому +1

    At the very end under EditProjectForm.jsx, if anyone want to set the project's status, you can use an array at the very top, outside of the function EditProjectForm
    const statusValues = [
    {
    status: 'new',
    value: 'Not Started'
    },
    {
    status: 'progress',
    value: 'In Progress'
    },
    {
    status: 'completed',
    value: 'Completed'
    },
    ]
    "then loop through it and compare it against the project current status"
    const currentStatus = statusValues.find(status => status.value === project.status)
    "set the status for the project selected"
    const [status, setStatus] = useState(currentStatus.status);

  • @adamjamiu6764
    @adamjamiu6764 2 роки тому

    Thanks brad! i owe you thousands gratitude. please can you create a video on "SQL with react"

  • @includejoe
    @includejoe 2 роки тому

    its been long since i built a project using this stack cause of school, I'm taking this course to refresh my memory

  • @naylord5
    @naylord5 Рік тому +1

    Thank you so much for sharing!
    I'm a newbie and I wonder if I'm already working with an ORM like Prisma, is recommended to add GraphQL to the combo? or both tools are the same thing / targets the same goal?
    I'm a bit confused.

  • @akashbanaulikar2278
    @akashbanaulikar2278 6 місяців тому

    Thank you for making it very simple and clear explainations.

  • @devbravo4158
    @devbravo4158 Рік тому

    This was awesome. Followed all the way through and learned a ton. Can't wait for a more advanced version. In the meantime, i'm going to take what I learned a build sometimes fun.

  • @evergreen7781
    @evergreen7781 2 роки тому +1

    Brad always has something we need the most ❤️

  • @louysatv
    @louysatv Рік тому +2

    Solve the problem with setStatus for `enum` @3:05:00:
    1. Using conditional:
    const [status, setStatus] = useState(
    project.status === "Not Started"
    ? "new"
    : project.status === "In Progress"
    ? "progress"
    : "completed"
    );
    2. Using a hashmap:
    const statusMap = {
    "Not Started": "new",
    "In Progress": "progress",
    "Completed": "completed",
    };
    const [status, setStatus] = useState(statusMap[project.status]);

  • @gopalchopra9857
    @gopalchopra9857 2 роки тому +2

    Hi, can you teach us how to deploy this specific application? This is my first time deploying an app so any tips or tricks to deploy with be great. Thanks and i love your videos.

  • @chologhuribangladesh7792
    @chologhuribangladesh7792 2 роки тому

    Just complete this course.
    Wow, Great content.
    I just like it. Thank you.

  • @Doumams83
    @Doumams83 2 роки тому

    Everyrime I see a video from you, it's priceless. Thanks champ

  • @gtechlabs7
    @gtechlabs7 Рік тому +3

    Great video, I have learned a lot here.
    Thanks a lot, Brad.

    • @solowolf5304
      @solowolf5304 Рік тому

      hey i was encountering a problem when i reached to the timestamp of 27:55 and opened localhost:5000/ on browser it shows Cannot GET / instead of launching graphiql. Any idea why that's happening ?

  • @piyushaggarwal5207
    @piyushaggarwal5207 2 роки тому

    Using something like makeExecutableSchema from graphql-tools will make the code around Queries and Mutations and Resolvers much easier to read and work with. And it will be beginner friendly was well.
    The documentation example you showed uses buildSchema from graphql to make easier to work with the Queries and Mutation or TypeDefs.

  • @the_imonem
    @the_imonem 2 роки тому

    Sat through the whole thing, thank you very much Brad

  • @b16a2
    @b16a2 2 роки тому +3

    Anyone following along, if you hit a snag around 55:05 with regards to GraphQLNonNull.
    If you're using GraphQL 16+, npm will fail to start with an error: "TypeError: Class constructor GraphQLNonNull cannot be invoked without 'new'".
    To resolve, instead of:
    "name: { type: GraphQLNonNull(GraphQLString) }"
    use:
    "name: { type: new GraphQLNonNull(GraphQLString) }"
    ...and you should be okay! This will need to be done for any instance of GraphQLNonNull (name, email, phone, etc.).

    • @cdialpha
      @cdialpha 2 роки тому +1

      Thanks, this was tripping me up & was going to post.
      Bump!

    • @MrEloso8585
      @MrEloso8585 2 роки тому

      How do I set it up to prevent me from adding the same client twice. When he enters the same email twice on the video he gets a error. For me it allows me to enter the same client multiple times

  • @Wepiss
    @Wepiss 2 роки тому

    Nice just finished my backend learning, I will be able to see all I learnt

  • @codingispower1816
    @codingispower1816 11 місяців тому

    "If I can spell this damn word" :D Brad. please never change, you are a legend in this game!

  • @codezeloss
    @codezeloss Рік тому

    Thank you Brad!!! It was a great tutorial, I learned a lot through it.

  • @dimitritsikaridze6220
    @dimitritsikaridze6220 2 роки тому +1

    I appreciate everything you do, great content as always. full stack angular project would be great as well

  • @本名出さない設定
    @本名出さない設定 2 роки тому

    Thanks from Japan.
    Your video is very useful to me.
    Thank you very much!!

  • @hiendinh3871
    @hiendinh3871 4 місяці тому

    Thanks Brad, you are No.1 developer on Earth Planet.

  • @oscaranillo7131
    @oscaranillo7131 Рік тому

    This is so great! Thanks for sharing! Keep up the great work!

  • @gametroll6311
    @gametroll6311 2 роки тому

    For getting the key value for the project status in the edit form, I just did a switch and set it manually:
    let projectStatus = '';
    switch (project.status) {
    case 'Not Started':
    projectStatus = 'new';
    break;
    case 'In Progress':
    projectStatus = 'progress';
    break;
    case 'Completed':
    projectStatus = 'completed';
    break;
    default:
    projectStatus = 'new';
    }
    const [status, setStatus] = useState(projectStatus);

    • @ontheruntonowhere
      @ontheruntonowhere 2 роки тому

      I put the statuses in a separate collection in the db to mitigate the problem updating the enum.

  • @orkhanrustamli2039
    @orkhanrustamli2039 2 роки тому

    Hey, great content. Would be great if you would show how to handle user state management with Apollo Cache and implement related stuff such as Private route and etc

  • @aurelienbaraka2527
    @aurelienbaraka2527 2 роки тому

    Thank you very much and God bless you !
    I've done it second by second and have learned by the way React which I find very interesting.
    Muchas gracias !

  • @orelhindi8852
    @orelhindi8852 2 роки тому

    best one I saw! could you add pagination handling? (offset+limit)

  • @aormeno91
    @aormeno91 2 роки тому +3

    Amazing tutorial! Is there a way you can show us how to deploy to heroku? I tried checking your older videos about heroku deployment but cant get it to work!

  • @dave6012
    @dave6012 2 роки тому

    GraphQL. So hot right now. Definitely adding this to my watchlist. Been wanting to dig in on GraphQL for a while.

  • @faridguzman91
    @faridguzman91 2 роки тому

    Just in time for my job interview on friday, thanks!

  • @luisf7105
    @luisf7105 2 роки тому

    Hey Brad, once again thanks for always uploading such valuable content. I'm actually considering a bootcamp. The one in particular I'm considering has you listed on their "how did you hear about us list." I'm not mentioning it here in case you're no longer working with them, but if you need me to, I will.👊🏽

  • @efreaq
    @efreaq 2 роки тому

    I love this tutorial. I finished and now converting it to my own thing. I just wish you had done a user authentication feature. Other than that... I love it and will check out your other tutorials.