How would one handle `online status` or `last seen...
# prisma-whats-new
p
How would one handle
online status
or
last seen
in graphcool? user's don't get updated when they make a query so
updatedAt
won't work. I am using auth0 integration, but that also doesn't get updated by graphcool and I'd prefer not to make a seperate query to them the whole time
@nilan
Any news on that or similar?
a
I use realtime.co to connect a user to a channel, then I use their webhooks for 'new connection' and 'connection closed' to update the user presence info at Graphcool.
👍 1
Depending on your client, you could also use Apollo middleware to add a mutation to every request to the server to update the user status. That might be easier...
p
@agartha thanks for the suggestion
I'm pretty new to apollo middleware but I'll research it a bit
h
Some analytics tools give you that info too (amplitude for example)