* Get a document * @param id * @returns
(id: string)
| 48 | * @returns |
| 49 | */ |
| 50 | async getDocument(id: string): Promise<JSONDBReponse> { |
| 51 | const response = await fetch(getBackendUrl(`/db/collection/${this.collectionName}/${id}`)); |
| 52 | return response.json(); |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * Update a document |