Hey All,
I’m using the following schema
type Metric {
name: String! @id
readings: [Reading!]
}
type Collection {
timestamp: DateTime! @search
readings: [Reading!]!
}
type Reading {
value: Float
metric: Metric! @hasInverse(field: readings)
collection: Collection! @hasInverse(field: readings)
}
It my mutations, I see the following functions:
addMetric(input: [AddMetricInput!]!): AddMetricPayload
updateMetric(input: UpdateMetricInput!): UpdateMetricPayload
deleteMetric(filter: MetricFilter!): DeleteMetricPayload
addCollection(input: [AddCollectionInput!]!): AddCollectionPayload
updateCollection(input: UpdateCollectionInput!): UpdateCollectionPayload
deleteCollection(filter: CollectionFilter!): DeleteCollectionPayload
addReading(input: [AddReadingInput!]!): AddReadingPayload
Notice, the absence updateReading
or deleteReading
function. Any idea why this is happening? I thought this might be because of the hasInverse functions, but even after I remove them, this doesn’t seem to work
Tejas