This works: ``` subscription { Event(...
# prisma-whats-new
n
This works:
Copy code
subscription {
            Event(filter: {
              mutation_in: [CREATED]
            }) {
              node {
                id
                name
                description
              }
            }
          }
But this doesn’t…
Copy code
subscription {
            Event(filter: {
              mutation_in: [CREATED]
            }) {
              node {
                id
                name
                description
                when
              }
            }
          }
The error is :
"Cannot query field 'when' on type 'Event'. (line 7, column 7):
n
@notrab is there a
when
field on the
Event
model? 🙂
n
Yep
It retrieves the data if you just query it
n
can you include
createdAt
instead of
when
, does that work?
n
But in the context of a subscription it fails
Yep
createdAt
works
when
works in the query but not in the subscription
n
interesting. will try to reproduce. sorry for the inconvenience!
n
I’ll upload
n
yea, I want to see if it's related to the
DateTime
field type 🙂
n
I’ve DM’d you my endpoints
n
Thanks!