Пример #1
0
        public static ComplexGraphType <IPublishedContent> AddUmbracoBuiltInProperties(this ComplexGraphType <IPublishedContent> graphType)
        {
            // TODO: set this field name as a reserved property alias
            graphType.Field <PublishedContentDataGraphType>("_contentData", "Built in published content data.", resolve: context => context.Source).SetDoctypeMetadata(graphType.GetMetadata <string>("documentTypeAlias"));

            return(graphType);
        }