I am learning GrpahQL
-----------list query
query {
listMonitoring(
sort: { regenerationTime: DESC }
filter: { and: [ { cycleStartTime: { gte: "2024-01-01T00:00:00+00:00" } }
{ cycleEndTime: { lt: "2024-02-01T00:00:00+00:00" } }
{ unitName: { eq: "UNIT-II" } } ] }
first: 1
) {
items {
unitName
cycleStartTime
regenerationTime
timeUOM { description }
}
}
}
-----Aggregated query
query {
aggregateMonitoring (
groupBy: [ unitName ]
filter: { and: [ { cycleStartTime: { gte: "2024-01-01T00:00:00+00:00" } }
{ cycleEndTime: { lt: "2024-02-01T00:00:00+00:00" } }
{ unitName: { eq: "UNIT-II" } } ] } ) {
items {
count {
cycleNumber
}
sum {
idleTime
cycleTime
}
group
}}}
Is there a way to get related type field timeUOM { description } in the output
Check the
documentation
Ask the
Community
Take a look
at
Academy
Cognite
Status
Page
Contact
Cognite Support