dsimowitz
05/04/2019, 11:53 PMtype Company implements Node {
id: ID!
date_founded: Int
description: String
image: CompanyImage
country: Country
name: String!
slug: String!
website: String
jobs(
where: JobWhereInput
orderBy: JobOrderByInput
skip: Int
after: String
before: String
first: Int
last: Int
): [Job!]
}
can I query all companies and get the number of jobs associated with each company? Something kind of like the following...
# Write your query or mutation here
query {
companies {
name
jobsConnection {
aggregate {
count
}
}
}
}
bkstorm
05/05/2019, 1:45 AMbkstorm
05/05/2019, 1:46 AM