Skip to content

Instantly share code, notes, and snippets.

Laura Weatherhead lssweatherhead

Block or report user

Report or block lssweatherhead

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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; }
View CarbonFootprintCategoryGraphType.cs
public class CarbonFootprintCategoryGraphType : ObjectGraphType<ItemType>
public CarbonFootprintCategoryGraphType()
Name = "CarbonFootprintCategory";
resolve: context => context.Source.Id
You can’t perform that action at this time.