I've been working with Firebase for 1 month, and now I'm starting to understand how it works.
In my App I've got some supermarket products like fruit, vegetable or others.
In real life I've got some NFC tags applied on the products.
In the database, there is a node which contains products, one node which contains NFC Ids, and one node which contains relations between them.
The Product's keys are pushed Ids while the NFC's are their Ids.
With my phone and the embedded NFC reader I can read the tags and tell the system which product I'm scanning.
Now I'd like to create a record each time a phone reads a NFC.
On the record, I'd like to put the data about the phone, the NFC Id's and the Product Push Id.
Is there a Server Side way, maybe with rules, to query the relation between NFC and Products and put it on my new record, the Product Id instead of the relation Id?
In this way I'll cut a lot of Client Side code which is making may app too complicated.
Thanks.