Support Topics Documentation Slack YouTube Blog

How to use "Relation"

What is the easiest way to get “deviceToken”?

I have “UserTasks” table with “userId” field.
I tryed to use “RelationsDepth”. I’ve got data from “UserTasks” and “Users” but I haven’t got data from “DeviceRegistration”.

I have solution with two queries (get data from “UserTasks”, and than get data from “DeviceRegistration” by userId).

Application ID

F20A5DDC-36F3-5EFA-FF8E-C4FFCB5AA300

Hello @Dmitry_Mirovodin

Since the DeviceRegistration table has a relation to Users table you can use the following whereClause to load all the user’s devices

user = 'YOUR_USER_ID'

you can play with it on the REST Console

Regards, Vlad