Is it possible to call a query from another query defined in the same router?
Say I have some code like the following:
Is it posible to reuse the
compute_one
query logic within the compute_all
query without extracting the common logic outside the router?
I have tried doing it via instantiating a client using that same router and executing the query as usual from within the query but I get 'default' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
due to the router=>client=>router circular reference.2 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I get the same error due to circular references router=>caller=>router