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
I created a ContentPart and added 2 DateTimeFields to it. Because it has other, non-field properties, I created a ObjectGraphType<SchedulePart>. But during the building of the Schema, it first adds my ObjectGraphType (via TypedContentTypeBuilder) and names it schedule (via ToFieldName extension method). But every place where it checks to see if a field already exists, it does this:
if (contentItemType.HasField(partName)) continue;
which will look for SchedulePart not schedule. This especially happens in DynamicContentTypeBuilder where the exception happens.
I think the code should be:
if (contentItemType.HasField(partName.ToFieldName())) continue;
Wherever it is doing the check for existing fields.
The text was updated successfully, but these errors were encountered:
I created a
ContentPart
and added 2DateTimeFields
to it. Because it has other, non-field properties, I created aObjectGraphType<SchedulePart>
. But during the building of theSchema
, it first adds my ObjectGraphType (viaTypedContentTypeBuilder
) and names itschedule
(via ToFieldName extension method). But every place where it checks to see if a field already exists, it does this:which will look for
SchedulePart
notschedule
. This especially happens inDynamicContentTypeBuilder
where the exception happens.I think the code should be:
Wherever it is doing the check for existing fields.
The text was updated successfully, but these errors were encountered: