public void Build(FieldType contentQuery, ContentTypeDefinition contentTypeDefinition, ContentItemType contentItemType)
        {
            var settings = contentTypeDefinition.Settings?.ToObject <ContentTypeSettings>();

            if (settings != null && settings.Stereotype != "Widget")
            {
                return;
            }

            contentItemType.Field <FlowMetadataQueryObjectType>("metadata",
                                                                resolve: context => context.Source.As <FlowMetadata>()
                                                                );
        }
        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>();
        }