ChilliCream / ChilliCream/graphql-platform

HotChocolate integration with dapper

Open
#8,463 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

🌶️ hot chocolate Area: Data
Dominant language
C#
Stars
5.8k
Forks
810
Avg merge
15h 39m
Merged PRs (30d)
98

Description

Product

Hot Chocolate

Is your feature request related to a problem?

N/A

The solution you'd like

I have done a generic and dynamic integration between Dapper and Hot Chocolate using the IResolverContext. This implementation will be very useful to the community, and it only requires a plain object type.

GitHub https://github.com/CristianBarragan/Coffee-Beanery

Supports:

  • Nodes (Left joins between entities)
  • Edges (Joins between entities)
  • Manages mutations for any generic objects
  • Paging
  • Filtering
  • Sorting

It is on my to-do list to make it public. I believe this repo would be the best place for this code. It is in an infant state, and there are optimizations and new features to do, as well as testing.

The idea is to test the code against the API itself, similar to the EF strategy https://learn.microsoft.com/en-us/ef/core/testing/choosing-a-testing-strategy#overall-comparison.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the linked Coffee-Beanery repository and its generic Dapper integration using IResolverContext. Compare the proposed API-level testing approach with the linked EF testing strategy. Done would mean a reviewed integration in the Hot Chocolate project with coverage for joins, mutations, paging, filtering, sorting, and testing.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, graphql
Domain
api, backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.