mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
fix the fields field of the POST fetch document API
This commit is contained in:
parent
ce6507d20c
commit
469d2f2a9c
3 changed files with 13 additions and 8 deletions
|
@ -473,7 +473,9 @@ async fn get_document_by_filter() {
|
|||
assert_eq!(response, response2);
|
||||
|
||||
let (response, code) = index
|
||||
.get_document_by_filter(json!({ "limit": 1, "filter": "color != blue", "fields": "color" }))
|
||||
.get_document_by_filter(
|
||||
json!({ "limit": 1, "filter": "color != blue", "fields": ["color"] }),
|
||||
)
|
||||
.await;
|
||||
let (response2, code2) =
|
||||
index.get_all_documents_raw("?limit=1&filter=color!=blue&fields=color").await;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue