Open BickelLukas opened 2 years ago
bump
I am trying to use this exact scenario and have encountered the same issue. I would like to see a fix as well.
Is there any plan to deal with this? It becoming a big issue for us as we need to rename many model fields.
Bump. Any update on this? Thanks!
Is there an existing issue for this?
Describe the bug
Model
Query
Type Extension
When querying for items and the projection visitor throws an exception when the user is queried: The follwing works
This throws the following exception
Property 'System.String Username' is not defined for type 'System.String' (Parameter 'property')
Steps to reproduce
https://github.com/glen-84/hc-5054 (.NET 8, HC 14.0.0-rc.1)
Relevant log output
Additional Context?
After some investigation I found out the Problem is in the ProjectionVisitor. It is trying to assign a
User
object to the User Property of theItem
which is a string.Product
Hot Chocolate
Version
12.7.0 and also 13.0.0-preview.19