本页还没有译文
本页 13 段还没译成Tiếng Việt,下面显示的是英文原文。followRef
还没翻译译自英文(tanstack.com)本页 13 段都还没译
function followRef(
query,
ref,
collection):
| void
| {
alias?: string;
collection: Collection;
path: string[];
sourceId?: string;
};Defined in: packages/db/src/query/ir.ts:409
Follows the given reference in a query until its finds the root field the reference points to.
Parameters
query
ref
PropRef<any>
collection
Returns
| void
| {
alias?: string;
collection: Collection;
path: string[];
sourceId?: string;
}
The collection, its alias, and the path to the root field in this collection.
alias is the alias under which the resolved collection is referenced in the
query it was reached from (when the ref crosses into a joined source). It is
left undefined when the ref simply resolves to a field on the passed-in
collection, in which case the caller already knows the alias.
AI 翻译查看英文原文