Please consider an endpoint like /indexes/:index_uid/documents/<primary key value> #185
zehawki
started this conversation in
Feedback & Feature Proposal
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently the primary key must be sent inside the document body json. I'm proposing sending the value in the route itself.
Because of the way our content json is structured, there is no such key inside the json fields, so I'm having to invent one on the fly by concatenating 2 existing fields "type of content" and "id" to create a new primary key for Meili. This involves needless edge worker activities to parse the entire json, add the new key, and then stringify it again. I can save on this by just sending the primary key value in the route, keeping the original json intact.
Beta Was this translation helpful? Give feedback.
All reactions