Skip to content

Commit a3ed90a

Browse files
committed
Fix aggreate type convert
1 parent d2a0d88 commit a3ed90a

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
## Examples
1818

1919
```ts
20-
import { init, MongoClient } from "https://deno.land/x/mongo@v0.5.0/mod.ts";
20+
import { init, MongoClient } from "https://deno.land/x/mongo@v0.5.1/mod.ts";
2121

2222
// Initialize the plugin
2323
await init();

mod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ export * from "./ts/database.ts";
44
export * from "./ts/result.ts";
55
export { ObjectId } from "./ts/types.ts";
66
export * from "./ts/util.ts";
7-
export const VERSION = "v0.5.0";
7+
export const VERSION = "v0.5.1";
88
export const RELEASE_URL = `https://github.com/manyuanrong/deno_mongo/releases/download/${VERSION}`;

ts/collection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { MongoClient } from "./client.ts";
22
import { UpdateResult } from "./result.ts";
33
import { CommandType, FindOptions } from "./types.ts";
4+
import { convert, parse } from "./type_convert.ts";
45
import { dispatchAsync, encode } from "./util.ts";
5-
import { parse, convert } from "./type_convert.ts";
66

77
export class Collection {
88
constructor(
@@ -162,7 +162,7 @@ export class Collection {
162162
})
163163
)
164164
);
165-
return docs as T[];
165+
return parse(docs) as T[];
166166
}
167167

168168
public async createIndexes(

0 commit comments

Comments
 (0)