From 6701211e9b85d4e42c65bdddad07f2cf8d2cf2bc Mon Sep 17 00:00:00 2001 From: Andndre Date: Mon, 29 Aug 2022 20:10:27 +0800 Subject: [PATCH] update redme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 7ce5b93..025bea2 100644 --- a/README.md +++ b/README.md @@ -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 ```