79778344

Date: 2025-09-29 16:27:19
Score: 1.5
Natty:
Report link

I have a situation where I need a field to be used in a calculated one but if the api client/user does not include that field is never selected from the database and for that reason the calculated field is never calculated. I cannot use any HotChocolate attribute in the entity since the project where those Entity (classes) are defined does not have a reference to GraphQL and we want to keep in that way.

In other words, I need to force HotChocolate to always include a property even if the user has not requested and in that way be able to use it from a ExtendObjectType.

I am using Hotchocolate 13.x

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (0.5): I cannot
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Michel Fornaris