diff --git a/src/subcollection/index.ts b/src/subcollection/index.ts index 281e58c6..f6212564 100644 --- a/src/subcollection/index.ts +++ b/src/subcollection/index.ts @@ -91,7 +91,7 @@ export function subcollection< * type User = { name: string } * type Order = { item: string } * const users = collection('users') - * const userOrders = subcollection('orders') + * const userOrders = subcollection('orders', users) * * const sashasOrders = userOrders('00sHm46UWKObv2W7XK9e') * //=> { __type__: 'collection', path: 'users/00sHm46UWKObv2W7XK9e/orders' }