DEV Community

Discussion on: Get started with GraphQL and Entity Framework

Collapse
 
menorless profile image
Francisco Mendez

Hi Michael @michaelstaib

Look, I don't like this:

[UseFiltering]
public virtual ICollection Enrollments { get; set; }

Because I don't like to apply attributes to my models.
My question is:

There's a way that I can get this behavior but by applying it into ObjectType without losing the IQueriable feature?

Collapse
 
michaelstaib profile image
Michael Staib

You can also use our fluent API.