Michael is a Microsoft MVP and the author of the Hot Chocolate project a platform for building GraphQL server and clients in .NET.
https://github.com/ChilliCream/hotchocolate
public class Query {
[UsePaging]
[UseSelection] // <--- creates the projections on the database
[UseSorting]
[UseFiltering]
public IQueryable GetJedis([Service]DBContext ctx)
=> ctx.Jedis.AsQueryable()
}
You put our new selections middleware on the resolver and then basically the whole subtree is selectable in one go.
Try out our preview for 10.4
You only need to declare that on the root resolver and hc will allow full selection of the whole tree.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I'm still looking for some resource on how to approach relationships in entity. Last time I asked they said it was a WIP :(
That is what pascal actually posted up there:
public class Query {
[UsePaging]
[UseSelection] // <--- creates the projections on the database
[UseSorting]
[UseFiltering]
public IQueryable GetJedis([Service]DBContext ctx)
=> ctx.Jedis.AsQueryable()
}
You put our new selections middleware on the resolver and then basically the whole subtree is selectable in one go.
Try out our preview for 10.4
You only need to declare that on the root resolver and hc will allow full selection of the whole tree.