Skip to content

Overriding ComplexType inside another ComplexType does not affect #2911

@AhmedElmehalawi

Description

@AhmedElmehalawi

Describe the bug
While trying to extend specific schemeType that has a field of another complex type.
For example:
The type of "InputUpdatePersonalDataType" which has a field of type "InputPersonalDataType".
I have extended the "InputPersonalDataType" as follows

Image

and then overriding the type in Module.cs file as follows
serviceCollection.AddSchemaType().OverrideType<InputPersonalDataType, InputExtendedPersonalDataType>()

this new type is not overridden and still with the old one.
Steps to reproduce
Steps to reproduce the behavior:

  1. Create new Template Module
  2. Extend The Conatct Model and ContactEntity
  3. In the XAPI, try to create InputExtendedPersonalDataType class that extends InputPersonalDataType
  4. Override the type in the Module.cs
  5. Chech the result in the "UpdatePersonalData" mutation, still with the old type.

Expected behavior
It should be overridden with the new type

Version info (please complete the following information):

  • Browser version: Brave Version 1.78.102 Chromium: 136.0.7103.113 (Official Build) (64-bit)
  • Platform version: 3.887.0

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions