Mutations - GRAPHQL API IN .NET w/ HOT CHOCOLATE #3

Поділитися
Вставка
  • Опубліковано 22 січ 2025

КОМЕНТАРІ • 15

  • @chengxiaoxia8046
    @chengxiaoxia8046 10 місяців тому +5

    You are so sincere, serious, professional and generous in sharing the useful knowledge , releasing high-quality code. I saw this video two years after you posted it and i was still deeply touched. Thanks so much. Your code works, your explanation is clear and comprehensive

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

    Thank you so much for this series of tutorials :^)

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

    That's nice... How can I implement a partial update?

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

    Hi, I noticed that you have some default dependencies in your new file class when adding to the current solution:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Threading.Tasks;
    How do i set these as default, so i dont have to paste them in everytime I add a new item to the solution?

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

      Create a new file called "Usings.cs" in your project folder and put all your dependencies inside like this:
      global using System;
      global using System.Collections.Generic;
      global using System.Linq;
      global using System.Threading.Tasks;
      Notice the keyword "global" indicating that these will apply everywhere in your project, so no need to repeat it in all your files anymore. Hope this helps.
      Edit: i believe this depends on your .NET version, so double check if it doesn't work

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

    Hey buddy I love your series and I'm planning to finish it hopefully soon if I can stop procrastinating. It will help me setup a small graphql project to further expand my humble cv.
    I'd love to know why we used mutations here, because I may have drifted a bit and added CRUD functionality straight into my Query class. How is that different from putting the functionality in a mutations class? Thanks!😅

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

    Why don't we create single model class which can preform all functionalities of CourseInput, CourseResult and CourseType?

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

      Hey Zain! You could probably get away with combining the types, but things could become difficult to maintain if those types start to diverge and contain different fields.

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

      @@SingletonSean yes I saw that following along. By the way thank you for such a great tutorials.

  • @avet9177
    @avet9177 9 місяців тому

    👍

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

    This is cool... apparently GraphQL has updated their error responses. I'm getting back:
    {"message": "The specified argument value does not match the argument type."}
    AND it shows the exact argument and value that is wrong:
    { "argument": "id",
    "argumentValue": "\"1383f3dc-b5c1-402a-8bb3-c7d4acda73f0f\"",}

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

    whoever names these stuff LOL

    • @SingletonSean
      @SingletonSean  3 роки тому +1

      I know right hahah, I'm definitely a fan of the marketing