Comments on: GraphQL Mutations in ASP.NET Core https://code-maze.com/graphql-mutations/ Learn. Code. Succeed. Mon, 28 Mar 2022 14:01:24 +0000 hourly 1 https://wordpress.org/?v=6.7.5 By: Sanyi https://code-maze.com/graphql-mutations/#comment-5361 Mon, 28 Mar 2022 14:01:24 +0000 https://code-maze.com/?p=48225#comment-5361 Hi,
How can we apply validation with for example fluentvalidation, please?
Sanyi

]]>
By: Karl Shifflett https://code-maze.com/graphql-mutations/#comment-2409 Wed, 12 Aug 2020 21:13:01 +0000 https://code-maze.com/?p=48225#comment-2409 In reply to Marinko.

@disqus_GtEeIZUUDN:disqus thank you. Great news, I’ve learned the Mutations and added them to my project. Way awesome! Thank you for your guidance and coaching. I’ll post a link to my blog post when I publish it.

Best regards,

Karl

]]>
By: Marinko https://code-maze.com/graphql-mutations/#comment-2401 Fri, 07 Aug 2020 03:42:46 +0000 https://code-maze.com/?p=48225#comment-2401 In reply to Karl Shifflett.

Hello Karl. First of all, I am so glad you are enjoying our book, we really invested a lot of time and knowledge into it. So, hearing something like that from the reader is always the best thing.

About your question. My personal opinion is if you don’t have to use more than one request to accomplish something, don’t do it. That said, if you are using Web API to handle these POST and PUT requests, I would create required DTOs and send them back in a same request. Again, this is what I would do if I had to mix GraphQL and Web API logic (but I never did that 😀 ).

]]>
By: Karl Shifflett https://code-maze.com/graphql-mutations/#comment-2400 Fri, 07 Aug 2020 01:25:58 +0000 https://code-maze.com/?p=48225#comment-2400 @@disqus_GtEeIZUUDN:disqus I’m looking to use GraphQL in an ASP.NET Web API application. We plan on all queries being handled by GraphQL. Our UI is Angular.

All POST and PUT operations need to be handled by Web API controllers because our business logic and workflows are super complex, which is why we don’t want to use GraphQL Mutations. Actually, we will be using MediatR for all commands.

What is your recommendation for POST and PUT operations that would typically return an update object back to the caller after the database insert or update has taken place.

I’m asking because GraphQL removes the need for many DTO objects in the code base. So we would have to create DTO objects for each POST and PUT to return. Or, do you recommend that after a POST or PUT, the Angular application use GraphQL to requery the data if required.

Thank you very much. Really like the Ultimate ASP.NET Core 3 Web API.

Karl

]]>
By: Evan Coh https://code-maze.com/graphql-mutations/#comment-1974 Mon, 27 Jan 2020 15:15:46 +0000 https://code-maze.com/?p=48225#comment-1974 Amazing content! Thank you for these examples. They helped a lot! Official documentation only includes the “create” part.

]]>
By: Marinko https://code-maze.com/graphql-mutations/#comment-1975 Mon, 27 Jan 2020 11:17:51 +0000 https://code-maze.com/?p=48225#comment-1975 In reply to Evan Coh.

You are very welcome. I’m glad you enjoyed it. I hope you will find more good stuff on our site. Best regards and see you again 🙂

]]>
By: Marinko https://code-maze.com/graphql-mutations/#comment-1278 Thu, 18 Jul 2019 02:10:12 +0000 https://code-maze.com/?p=48225#comment-1278 In reply to Tam Nguyen.

Thank you too mate. Have a great day. Best regards.

]]>
By: Tam Nguyen https://code-maze.com/graphql-mutations/#comment-1276 Thu, 18 Jul 2019 00:52:01 +0000 https://code-maze.com/?p=48225#comment-1276 Thanks very much for your constribution. It saves me a lot of time for my learning curve.
Respectfully yours.
Tam

]]>