Skip to content

Instantly share code, notes, and snippets.


Laura Weatherhead lssweatherhead

View GitHub Profile
View CarbonFootprintCategoryGraphType.cs
public class CarbonFootprintCategoryGraphType : ObjectGraphType<ItemType>
public CarbonFootprintCategoryGraphType()
Name = "CarbonFootprintCategory";
resolve: context => context.Source.Id
lssweatherhead / DataModels.cs
Last active Aug 18, 2019
Code excerpts from Umbraco GraphQL Custom Data Sections
View DataModels.cs
[PrimaryKey("Id", autoIncrement = true)]
public class ItemType
[PrimaryKeyColumn(AutoIncrement = true)]
public int Id { get; set; }
You can’t perform that action at this time.