CreateReadingInput
Provides the fields and values to use when creating a reading.
input CreateReadingInput {
meter: ID!
status: ReadingStatus
type: ReadingType!
source: ReadingSource
reading: Decimal!
readingAt: Date!
periodStartAt: Date
periodEndAt: Date
}
Fields
CreateReadingInput.meter
● ID!
non-null scalar
The reading's meter.
CreateReadingInput.status
● ReadingStatus
enum
The reading's status.
CreateReadingInput.type
● ReadingType!
non-null enum
The reading's type.
CreateReadingInput.source
● ReadingSource
enum
The reading's source.
CreateReadingInput.reading
● Decimal!
non-null scalar
The reading's reading.
CreateReadingInput.readingAt
● Date!
non-null scalar
The date when the reading was taken.
CreateReadingInput.periodStartAt
● Date
scalar
The date when the reading period started.
CreateReadingInput.periodEndAt
● Date
scalar
The date when the reading period ended.
Member Of
createReading
mutation