public void Build(FieldType contentQuery, ContentTypeDefinition contentTypeDefinition, ContentItemType contentItemType) { var settings = contentTypeDefinition.Settings?.ToObject <ContentTypeSettings>(); if (settings != null && settings.Stereotype != "MenuItem") { return; } contentItemType.Field <MenuItemsListQueryObjectType>( nameof(MenuItemsListPart).ToFieldName(), resolve: context => context.Source.As <MenuItemsListPart>() ); contentItemType.Interface <MenuItemInterface>(); }