Hot Chocolate
GraphQL for .NET
Our great sponsors
Hot Chocolate | GraphQL for .NET | |
---|---|---|
17 | 6 | |
4,869 | 5,737 | |
1.3% | 0.6% | |
9.6 | 9.1 | |
5 days ago | 22 days ago | |
C# | C# | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Hot Chocolate
-
I love LINQ and the Entity Framework
have a look here https://youtu.be/qrh97hToWpM https://chillicream.com/
-
How to efficiently call an arbitrary method?
There are some libraries which allows you to declare some class with more or less arbitrary methods which will be called by it at runtime. I believe many of them do that in optimal way, not just using usual reflection. One of the examples is HotChocolate library https://github.com/ChilliCream/hotchocolate . You declare class with arbitrary methods which contain arbitrary arguments. "Arbitrary" doesn mean arbitrary at all, but if parameter type is registered in DI or marked by specific attribute, it can be passed to the method.
-
ChilliCream GraphQL vs GraphQL.Net in
At work we are considering using GraphQL to build our read-only data-APIs using .NET 6, EF Core and SQL Server. Looking at the ecosystem the most relevant plattforms seems to be graphql-dotnet and ChilliCream.
-
Graphql-dotnet vs Hot Chocolate, which one to choose?
I'm starting a brand new project. Looks like if we want to do GraphQL in .NET, it's either graphql-dotnet or Hot Chocolate. Both look pretty good on paper.
- GraphQL is quickly moving to one of my least favorite technologies
-
JavaScript: *gets annihilated*
If you know it better: Please try statically typed generated graphql queries in C# (like write the graphql queries, have a graphql schema, then get generated C# types which resemble the query, the only thing I've found that could do it was https://chillicream.com/docs/strawberryshake and there I quickly hit this bug with super simple queries containing unions: https://github.com/ChilliCream/hotchocolate/issues/4662
-
Adopting 200 OK! Error Handling strategy in GraphQL with Hot Chocolate (dotnet).
If you don't know Hot Chocolate framework, feel free to read about it on chillicream.com (official website) and feel free to join the great community (which is always willing to help) on slack
-
Which programming language, besides JS, has the best support/ecosystem for graphql?
I love using Hot Chocolate in C# ❤
-
GraphQL mutation union erros (6a) with Hotchocolate GraphQL Server
Hotchocolate GraphQL server. This is the most advanced server for a .Net environment. This article does not go into the basics and assumes some framework knowledge.
-
Introducing pf2e.io, a generic, source-available, re-usable and most notably free set of services for creating pathfinder 2e tools, sites and applications.
I think for the time being that's the case, yeah. I'm confirming with the great people over at https://github.com/ChilliCream/hotchocolate to see if we can somehow work around that.
GraphQL for .NET
-
Redis as a Database — Live Data Updates with PubSub and GraphQL Subscriptions
The way that’s done in Visualizer is quite specific to my needs and to the library that I’m using, called GraphQl-Dotnet.
-
Graphql-dotnet vs Hot Chocolate, which one to choose?
I'm starting a brand new project. Looks like if we want to do GraphQL in .NET, it's either graphql-dotnet or Hot Chocolate. Both look pretty good on paper.
-
Dotnet Outdated - Install and Update
This is a template API using Clean Architecture alongside a .net implementation of GraphQL.
-
Improving the GraphQL.NET Data Loader Execution Strategy
Customising the default ParallelExecutionStrategy is harder though. The best way to achieve this is to take the existing source code and modify it. The key section we need to modify is the last part of the try/catch in ExecuteNodeTreeAsync:
-
when will we see a native Date/Time type?
Because it can depend on the context. I know the PHP Laravel integration for GraphQL I used was leveraging the Carbon interface instead of PHP's native Date type. In NestJS the integrated solution allows you to choose whether to use UNIX timestamps or ISO datetimes. TypeGraphQL does something similar if I'm not wrong, and the .NET library added a bunch of date-related scalars in a PR they made for v2.
-
Learn GraphQL + React in 30 mins with Apollo's new learning platform Odyssey!
If you're loving your current stack, you should stick with it :) But, if you're experiencing some of the problems described in the article, you might want to try Apollo. It's incrementally adoptable, so you don't have to rewrite your whole app to start using it. There's also a community maintained .NET implementation of GraphQL, so you could use that for your graph and use Apollo Client to connect it to the frontend.
What are some alternatives?
AutoMapper - A convention-based object-object mapper in .NET.
FluentValidation - A popular .NET validation library for building strongly-typed validation rules.
ServiceStack - Thoughtfully architected, obscenely fast, thoroughly enjoyable web services for all
IdentityServer - The most flexible and standards-compliant OpenID Connect and OAuth 2.x framework for ASP.NET Core
Breeze - Breeze for C#, F#, and VB.NET client applications
openiddict-core - Flexible and versatile OAuth 2.0/OpenID Connect stack for .NET
hotchocolate - Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Banana Cake Pop the awesome Monaco based GraphQL IDE. [Moved to: https://github.com/ChilliCream/graphql-platform]
Boycotter
NancyFx - Lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono. Note: This project is no longer maintained and has been archived.
Xamarin.Essentials - Essential cross platform APIs for your mobile apps.
Telegram.Bot - .NET Client for Telegram Bot API