Retrieving multiple Companies
The following example looks up the available companies from your BaseCMS instance.
To query content via the GraphQL API, utilize the allPublishedContent
query.
query AllCompanies($input: AllPublishedContentQueryInput!) {
allPublishedContent(input: $input) {
pageInfo {
hasNextPage
endCursor
}
edges {
node {
id
type
name
... on ContentCompany {
companyType
# ...
}
}
}
}
}
Last updated