ctkn

Results 1 comments of ctkn

``` post_prefetch = Prefetch(relation='posts', queryset=Post.all().limit(5)) user_posts = await User.all().prefetch_related(post_prefetch) ``` It's not necessary to use OuterRef But OuterRef need to case like this ``` customers = await Customer.all().annotate( earliest_delivery_time=Subquery( Order.filter(customer_id=OuterRef('id')).limit(1).values_list('delivery_time')...