Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ContentItemVersionId nullable in graphql #16030

Merged
merged 6 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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