Skip to content

HotChocolate integration with dapper #8463

@CristianBarragan

Description

@CristianBarragan

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.

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions