csharpfritz / InstantAPIs

A library that generates Minimal API endpoints for an Entity Framework context.
MIT License
447 stars 57 forks source link

GraphQL support #25

Open csharpfritz opened 2 years ago

csharpfritz commented 2 years ago

We should enable optional GraphQL support with an entry in the InstantAPI configuration

dpiessens commented 2 years ago

Hi, this is a great project, can I help with the GraphQL side? A few thoughts around what we could do here:

csharpfritz commented 2 years ago

I don’t have a preferred GraphQL library. Recommend one you prefer.

Yea, mutations are probably not going to work.

Yes on filtering. Basic filtering should be enabled, but how do we limit it?

Welcome on-board. Let’s consider adding a “EnableGraphQL” Boolean configuration option to activate the GroahQL feature.

Jeff

On Feb 23, 2022, at 17:38, Dan Piessens @.***> wrote:

 Hi, this is a great project, can I help with the GraphQL side? A few thoughts around what we could do here:

Probably makes sense to use an existing GraphQL library, do you have a preferred one? Given how mutations work, I think it would make sense to make it read-only for simplicity Authorization may also come into play, but we can cross that when we get there. Filtering capabilities #18 is something that we would also need to consider as we may not want to allow everything but don't want the API to be too complicated — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.