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
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?
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
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!😅
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.
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\"",}
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
Much appreciated, thanks!!
Thank you so much for this series of tutorials :^)
That's nice... How can I implement a partial update?
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?
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
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!😅
Why don't we create single model class which can preform all functionalities of CourseInput, CourseResult and CourseType?
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.
@@SingletonSean yes I saw that following along. By the way thank you for such a great tutorials.
👍
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\"",}
whoever names these stuff LOL
I know right hahah, I'm definitely a fan of the marketing