Skip to content

Commit 99acc2f

Browse files
committed
Add 1.7 support
1 parent 5cc1bf0 commit 99acc2f

File tree

2 files changed

+0
-53
lines changed

2 files changed

+0
-53
lines changed

docs/examples/databases/create-documents.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/services/databases.ts

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -96,44 +96,6 @@ export class Databases extends Service {
9696
}, payload);
9797
}
9898

99-
/**
100-
* Create new Documents. Before using this route, you should create a new
101-
* collection resource using either a [server
102-
* integration](https://appwrite.io/docs/server/databases#databasesCreateCollection)
103-
* API or directly from your database console.
104-
*
105-
* @param {string} databaseId
106-
* @param {string} collectionId
107-
* @param {object[]} documents
108-
* @throws {AppwriteException}
109-
* @returns {Promise}
110-
*/
111-
createDocuments<Document extends Models.Document>(databaseId: string, collectionId: string, documents: object[]): Promise<Models.DocumentList<Document>> {
112-
if (typeof databaseId === 'undefined') {
113-
throw new AppwriteException('Missing required parameter: "databaseId"');
114-
}
115-
116-
if (typeof collectionId === 'undefined') {
117-
throw new AppwriteException('Missing required parameter: "collectionId"');
118-
}
119-
120-
if (typeof documents === 'undefined') {
121-
throw new AppwriteException('Missing required parameter: "documents"');
122-
}
123-
124-
const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
125-
const payload: Payload = {};
126-
127-
if (typeof documents !== 'undefined') {
128-
payload['documents'] = documents;
129-
}
130-
131-
const uri = new URL(this.client.config.endpoint + apiPath);
132-
return this.client.call('post', uri, {
133-
'content-type': 'application/json',
134-
}, payload);
135-
}
136-
13799
/**
138100
* Get a document by its unique ID. This endpoint response returns a JSON
139101
* object with the document data.

0 commit comments

Comments
 (0)