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
lssweatherhead / DataModels.cs
Last active Aug 18, 2019
Code excerpts from Umbraco GraphQL Custom Data Sections
View DataModels.cs
[TableName("ItemTypes")]
[PrimaryKey("Id", autoIncrement = true)]
[ExplicitColumns]
public class ItemType
{
[Column("Id")]
[PrimaryKeyColumn(AutoIncrement = true)]
public int Id { get; set; }
[Column("Name")]
View CarbonFootprintCategoryGraphType.cs
public class CarbonFootprintCategoryGraphType : ObjectGraphType<ItemType>
{
public CarbonFootprintCategoryGraphType()
{
Name = "CarbonFootprintCategory";
Field<NonNullGraphType<IntGraphType>>(
"id",
resolve: context => context.Source.Id
);
Field<NonNullGraphType<StringGraphType>>(
You can’t perform that action at this time.