Skip to content

Commit

Permalink
update redme
Browse files Browse the repository at this point in the history
  • Loading branch information
Andndre committed Aug 29, 2022
1 parent c2ae699 commit 6701211
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ instance.insertOne('collectionName', {name: 'test', age: 17})
```
But make sure to initialize the DataAPI instance with this code first:
```ts
import { DataAPI } from 'https://deno.land/x/mongodbdataapi/mod.ts';

const instance = DataAPI.init(BASE_URL + '/action', DATA_SOURCE, DATABASE, API_KEY) // returns the DataAPI instance
```

Expand Down

0 comments on commit 6701211

Please sign in to comment.