有没有办法用指针引用firebase中的另一个对象,而不是存储两次数据。?
我有一个firebase DB,它的分支用于:有没有办法用指针引用firebase中的另一个对象,而不是存储两次数据。?,firebase,rest-firebase,Firebase,Rest Firebase,我有一个firebase DB,它的分支用于: /Customers/{CustomerID}/{CustomerName} {CustomerAddress} /Contacts/{CustomerID}/{contactID}/{ContactName} {contactPhone} {contactEm
/Customers/{CustomerID}/{CustomerName}
{CustomerAddress}
/Contacts/{CustomerID}/{contactID}/{ContactName}
{contactPhone}
{contactEmail}
/sampleout/{customerId}/{sampleoutID}/.....
other Data including the customer name, contact etc etc that is kept above.
我正在寻找一种最好的方式来引用客户和联系信息,而不必输出:1)在FB树中存储两次。2) 进行2次或更多读取调用
因此,我希望能够读取/sampleOut树,当它读取say sampleID 1并指向给定客户时,它也会拾取该客户对象,而不必在代码中创建“read”调用 我也在寻找答案