Hey! How do i create data based on api request som...
# prisma-whats-new
d
Hey! How do i create data based on api request something like activity tracking; can you share if that is possible?
n
@dbkooper we're already looking for ways to give you more insights. For now you can actually log mutations to an external system using the functions feature.
d
Hmmm..ok…cool.. Rephrasing my query: I need to track “when user visits another user profile” - dating app use-case; so, api would be /u1/show/u2 -> cant i define a function on top of it to log; ( u2, u1 )?
n
ah you can just create a new type for this
let's call it Visit
that has two one-to-one relations to user (one visitor and one visited)
d
cool... this makes sense. 👍 it will be recorded as well plus return u2 data;