mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 08:41:00 +00:00
error message when impossible to infer the primary-key; fix #517
This commit is contained in:
@ -205,6 +205,11 @@ impl Server {
|
||||
self.post_request_async(&url, body);
|
||||
}
|
||||
|
||||
pub fn add_or_replace_multiple_documents_sync(&mut self, body: Value) -> (Value, StatusCode) {
|
||||
let url = format!("/indexes/{}/documents", self.uid);
|
||||
self.post_request(&url, body)
|
||||
}
|
||||
|
||||
pub fn add_or_update_multiple_documents(&mut self, body: Value) {
|
||||
let url = format!("/indexes/{}/documents", self.uid);
|
||||
self.put_request_async(&url, body);
|
||||
|
Reference in New Issue
Block a user