mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
docs: fixed sql to query in the last example (#5753)
there was no `sql` tag in the example, and `query` made the most sense.
This commit is contained in:
parent
50a0641592
commit
0aba8a2445
@ -162,6 +162,6 @@ postRepository.save(post, { data: { request: request } });
|
||||
// in logger you can access it this way:
|
||||
logQuery(query: string, parameters?: any[], queryRunner?: QueryRunner) {
|
||||
const requestUrl = queryRunner && queryRunner.data["request"] ? "(" + queryRunner.data["request"].url + ") " : "";
|
||||
console.log(requestUrl + "executing query: " + sql);
|
||||
console.log(requestUrl + "executing query: " + query);
|
||||
}
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user