I’m not exactly sure what you mean but maybe I can clarify a few things here:
- Direct GraphQL queries on the interface as well as the type result in the correct typename to returned
- I am interested on returning the correct type name when performing a DQL query (eq. inside a custom lambda) and return the result.
I’m not sure how you guys transform a DQL query result into a GraphQL query result, so I have this probably very stupid approach of just stripping the typenames from the predicates in the return object. So
HasInterfaceField.interfaceField
becomes interfaceField
, which will then be returned.
I can imagine it has something to do with how I implement the interface, which I have asked here.