File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
2323await init ();
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ export * from "./ts/database.ts";
44export * from "./ts/result.ts" ;
55export { ObjectId } from "./ts/types.ts" ;
66export * from "./ts/util.ts" ;
7- export const VERSION = "v0.5.0 " ;
7+ export const VERSION = "v0.5.1 " ;
88export const RELEASE_URL = `https://github.com/manyuanrong/deno_mongo/releases/download/${ VERSION } ` ;
Original file line number Diff line number Diff line change 11import { MongoClient } from "./client.ts" ;
22import { UpdateResult } from "./result.ts" ;
33import { CommandType , FindOptions } from "./types.ts" ;
4+ import { convert , parse } from "./type_convert.ts" ;
45import { dispatchAsync , encode } from "./util.ts" ;
5- import { parse , convert } from "./type_convert.ts" ;
66
77export 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 (
You can’t perform that action at this time.
0 commit comments