You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would seem to be because the SchemaSObjectType class has nothing in ghostedSobjectFields / sobjectfields. the main fields are created with type resolver and presumably a "real" sobject type returned by the type resolver would include the standard fields.
Unfortunately the type resolver does not return anything when searching for the ghost object. Can fix this in two places:
Prevent the error from displaying at all by checking if inputType (the object) is ghosted too - which stops dot expression from doing missing errors on fields of ghosted objects in the specific case.
Add standard fields to ghostedSobjectfields on SchemaSObjectType so they get picked up only when its a ghosted type.
Example
We have standard fields on
GhostSObjectDeclaration
including theName
field so it should be finding it, but isn't.The text was updated successfully, but these errors were encountered: