JsonApiDotNetCore
GraphQL for .NET
JsonApiDotNetCore | GraphQL for .NET | |
---|---|---|
7 | 6 | |
653 | 5,742 | |
1.2% | 0.3% | |
9.2 | 9.0 | |
3 days ago | 16 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.
JsonApiDotNetCore
-
Ask HN: Nested Resources in REST/HTTP API URLs?
Well, that might be true when implementing from the scratch, but using a standard often also means, that someone has implemented a well known library to get rid of the boilerplate and basic decisions.
I personally often use jsonapi.net[1], a C# implementation of JSONAPI. This supports OpenAPI/Swagger with swashbuckle, has a very good filtering implementation and together with Orbit.js[2] it is pretty much without having to decide many things...
[1]: https://www.jsonapi.net/
- Ask HN: What's is your go to toolset for simple front end development?
- Recommendation reading (books/blogs) for best practices while designing REST APIs
-
Composing and nesting with JsonApiDotNetCore
It's so powerful that it even allows you to establish relationships between operations within a single request, using something called local IDs. Work is progressing quickly on the atomic-operations branch. Check it out on Github if you want to follow along.
-
Relationships
In our previous post we setup a basic JSON:API compliant API with the 4.0 release of the JsonApiDotNetCore framework. You can find the code we wrote under the part-1 branch on Github.
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?
ServiceStack - Thoughtfully architected, obscenely fast, thoroughly enjoyable web services for all
Hot Chocolate - 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.
FFImageLoading - Fast & Furious Image Loading - Image loading, caching & transforming library for Xamarin and Windows
AutoMapper - A convention-based object-object mapper in .NET.
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.
Breeze - Breeze for C#, F#, and VB.NET client applications
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]
eisk.webapi - Project based on latest .NET (v6.0) technologies for building scalable web api, along with clean architecture patterns.