Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #87 from solocommand/all-published-content
Browse files Browse the repository at this point in the history
Add docs to `AllPublishedContentQueryInput`
  • Loading branch information
solocommand authored May 27, 2021
2 parents 2a79166 + 9912b71 commit c3a2d75
Showing 1 changed file with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ extend type Query {
queryBuilder: "allContent",
withSite: false, # allow content to always load, regardless of site context.
)
"Returns all published content items matching the supplied criteria."
allPublishedContent(input: AllPublishedContentQueryInput = {}): ContentConnection!
publishedContentCounts(input: PublishedContentCountsQueryInput = {}): [PublishedContentCount!]!
contentSitemapUrls(input: ContentSitemapUrlsQueryInput = {}): [ContentSitemapUrl!]!
Expand Down Expand Up @@ -284,23 +285,39 @@ input ContentSitemapNewsUrlsQueryInput {
}
input AllPublishedContentQueryInput {
"Limits results to content with a primary site matching the current site context "
withSite: Boolean = true
"A websiteSite identifier. If present, overrides the current site context."
siteId: ObjectID
"Limit results to items published after this date."
after: Date
"Limit results to items published before this date."
since: Date
"Limit results to items with this primary section id."
sectionId: Int
# @deprecated. Use \`AllPublishedContentQueryInput.includeContentTypes\` instead.
"Deprecated. Use includeContentTypes instead."
contentTypes: [ContentType!] = []
"Limit results to items matching at least one of these types."
includeContentTypes: [ContentType!] = []
"Limit results to items matching none of these types."
excludeContentTypes: [ContentType!] = []
"Limit results to items matching none of these ids."
excludeContentIds: [Int!] = []
"Limit results to items matching at least one of these ids."
includeTaxonomyIds: [Int!] = []
"Limit results to items matching at least one of these labels."
includeLabels: [String!] = []
"Limit results to items that have a primary image."
requiresImage: Boolean = false
"Include child sections when limiting by primary section id."
sectionBubbling: Boolean = true
"Adjusts the order items are returned in."
sort: ContentSortInput = { field: published, order: desc }
"Adjust which subset of results should be returned."
pagination: PaginationInput = {}
"For types with a startDate field: Limit results to items with a startDate matching the criteria."
beginning: ContentBeginningInput = {}
"For types with a endDate field: Limit results to items with a endDate matching the criteria."
ending: ContentEndingInput = {}
}
Expand Down

0 comments on commit c3a2d75

Please sign in to comment.