次のようなブランチを持つfirebase DBがあります。
/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) 2 つ以上の読み取り呼び出しを行う。
/sampleOut ツリーを読み取れるようにしたいのですが、sampleID 1 を読み取り、特定の顧客を指しているときに、コードで「読み取り」呼び出しを作成することなく、その顧客オブジェクトもピックアップします。