forked from Kekenika/terraform-provider-typesense
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Fixed document update reponse processing
- Loading branch information
1 parent
c0b7ee7
commit 4929a77
Showing
4 changed files
with
76 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "typesense_document Resource - typesense" | ||
subcategory: "" | ||
description: |- | ||
Every record you index in Typesense is called a Document | ||
--- | ||
|
||
# typesense_document (Resource) | ||
|
||
Every record you index in Typesense is called a Document | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "typesense_document" "my-document" { | ||
name = "test-document" | ||
collection_name = typesense_collection.test_collection.name | ||
document = <<EOF | ||
{ | ||
"field1":"testValue1", | ||
"field2":"testValue2" | ||
} | ||
EOF | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `collection_name` (String) Collection name | ||
- `document` (String) Document object in JSON format | ||
- `name` (String) Name identifier, it will be used as id, so needs to be URL-friendly | ||
|
||
### Read-Only | ||
|
||
- `id` (String) Id identifier | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import typesense_document.my_document document-id | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters