JacekKosciesza / StarWars

GraphQL 'Star Wars' example using GraphQL for .NET, ASP.NET Core, Entity Framework Core
MIT License
623 stars 98 forks source link

How create IQueryable according the GraphQL query? #2

Open janskoruba opened 7 years ago

janskoruba commented 7 years ago

I want to create optimize sql query according the graphql query. Is it possible create some mapping the GraphQL query to IQueryable for Entity Framework?

For example - If you want to get hero without his friends collection or with his friends. It will be different complicated query on SQL server. How can I solve this issue?

Thank you.

hfmm99 commented 6 years ago

Yes it's possible, take a look at this:

https://github.com/ckimes89/graphql-net