Skip to content
Discussion options

You must be logged in to vote

Hey @thisanimus

Here are some answers to your questions:

  1. You could fetch your docs sorted by your legacy field, then call the /api/reorder endpoint sequentially to place each one after the previous
  2. Not directly. New documents are automatically appended to the end on create. To place a document at a specific position, you'd have to create it first, then immediately call /api/reorder to move it.
  3. Since _order is a fractional index string, you'd need to fetch all documents sorted by _order and find the index client-side

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@andershermansen
Comment options

Answer selected by zubricks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants