__debug, __sql doesn't log sql queries made withing promises or resolves In Types
See original GitHub issueHello world, I have a query that has promises with data loaders, In those dataloaders I do queries that don’t show up in the queries
__debug{ __sql{ sql}}
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
19 - Stack Overflow
The problem is that when there is an error, the wrong query gets printed in the console.log(command) . This is because the time...
Read more >Debugging SQL syntax errors - Metabase
Reading an error message shouldn't feel like solving a riddle. This debugging guide explains what you can do about stubborn queries that refuse...
Read more >Understand and resolve SQL Server blocking problems
The article describes blocking in SQL Server and demonstrates how to troubleshoot and resolve blocking. In this article, the term connection ...
Read more >Better Error Handling In NodeJS With Error Classes
This article is for JavaScript and NodeJS developers who want to improve error-handling in their applications.
Read more >msnodesqlv8 - npm
This library has full compatibility with MS SQL Server using an MS ODBC driver. Many functions e.g. open, query, connection pool, prepare, transactions, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes I think that the sql tag should be resolved after the rest of the query is resolved … even after promises are resolved in the query. That would resolve a lot of issues.
Looking at the code of that middleware, I see it waits for all promises that where seen by the middleware before starting to resolve
__sql
. I think something like this might work:Edit: it works, I’ve made a PR out of it: #591.