Hey! How do i create data based on api request something like activity tracking; can you share if that is possible?
n
nilan
06/12/2017, 1:31 PM
@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
dbkooper
06/13/2017, 7:19 AM
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
nilan
06/13/2017, 7:28 AM
ah you can just create a new type for this
nilan
06/13/2017, 7:28 AM
let's call it Visit
nilan
06/13/2017, 7:29 AM
that has two one-to-one relations to user (one visitor and one visited)
d
dbkooper
06/13/2017, 10:26 AM
cool... this makes sense. 👍 it will be recorded as well plus return u2 data;