Skip to content

Commit

Permalink
Update ContentItemVersionId nullable in GraphQL (#16030)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyzx86 authored May 15, 2024
1 parent 8dca5ad commit 768459c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public ContentItemInterface(IOptions<GraphQLContentOptions> optionsAccessor)
Name = "ContentItem";

Field(ci => ci.ContentItemId);
Field(ci => ci.ContentItemVersionId);
Field(ci => ci.ContentItemVersionId, nullable: true);
Field(ci => ci.ContentType);
Field(ci => ci.DisplayText, nullable: true);
Field(ci => ci.Published);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ public ContentItemType(IOptions<GraphQLContentOptions> optionsAccessor)
Name = "ContentItemType";

Field(ci => ci.ContentItemId).Description("Content item id");
Field(ci => ci.ContentItemVersionId).Description("The content item version id");
Field(ci => ci.ContentItemVersionId, nullable: true).Description("The content item version id");
Field(ci => ci.ContentType).Description("Type of content");
Field(ci => ci.DisplayText, nullable: true).Description("The display text of the content item");
Field(ci => ci.Published).Description("Is the published version");
Field(ci => ci.Latest).Description("Is the latest version");
Field<DateTimeGraphType>("modifiedUtc").Resolve(ci => ci.Source.ModifiedUtc).Description("The date and time of modification");
Field<DateTimeGraphType>("publishedUtc").Resolve(ci => ci.Source.PublishedUtc).Description("The date and time of publication");
Field<DateTimeGraphType>("createdUtc").Resolve(ci => ci.Source.CreatedUtc).Description("The date and time of creation");
Field(ci => ci.Owner).Description("The owner of the content item");
Field(ci => ci.Owner, nullable: true).Description("The owner of the content item");
Field(ci => ci.Author).Description("The author of the content item");

Field<StringGraphType, string>("render")
Expand Down

0 comments on commit 768459c

Please sign in to comment.