When using equality functions where the value is also from a predicate, I get the error:
Got error: parsing time \"UserStatus.createdAt\" as \"2006-01-02T15:04:05\":
cannot parse \"UserStatus.createdAt\" as \"2006\" while running: name:\"gt\" args:\"UserStatus.createdAt\" ",
type UserStatus {
id: ID!
question: Ques!
createdAt: DateTime!
}
type Ques {
id: ID!
name: String!
publishedAt: DateTime!
}
These two questions suggest that the DateTime should be in the RFC3339 format, so I tried that but no luck. UserStatus.createdAt = "2020-11-05T18:08:05.000000786-07:00"
If I replace User.createdAt with the value itself, it works.
For example: UserStatus.question @filter(gt(Ques.publishedAt, "2020-11-05T18:08:05Z)) {
And it doesn’t even need to be in RFC format.