- Run the the
Demo.Api
project. - Execute the example demo queriy provided in
Demo.Api.http
- Observe the error message:
"A composite type always needs to specify a selection set."
- Stop the application.
- Uncomment line 12 in
Models/Book.cs
hc-isprojected-demo/Models/Book.cs
Line 12 in 8919b66
- Run the
Demo.Api
project again, execute the request and watch it complete successfully.
I would expect the attribute on line 12 in Models/Book.cs
to work. The queryable returned from the resolver includes the navigation property Author
, so it feels like it should be possible from a technical point of view to also access it in the field middleware.