We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
RefProperty<T>
1 parent 11c960f commit ad54607Copy full SHA for ad54607
src/collections/types/query.ts
@@ -127,7 +127,7 @@ export interface BaseRefProperty<T> {
127
/** The metadata to return for the referenced objects. */
128
returnMetadata?: QueryMetadata;
129
/** The properties to return for the referenced objects. */
130
- returnProperties?: QueryProperty<T>[];
+ returnProperties?: QueryProperty<ExtractCrossReferenceType<T[this['linkOn']]>>[];
131
/** The references to return for the referenced objects. */
132
returnReferences?: QueryReference<ExtractCrossReferenceType<T[this['linkOn']]>>[];
133
/** The collection to target when traversing the references. Required for multi-target references. */
0 commit comments