I also use tuples. When you don’t know the ID beforehand you can just use a counter. See Enum.with_index.
When inserting I use tuples like {:insert, :product, index}.
I also use tuples. When you don’t know the ID beforehand you can just use a counter. See Enum.with_index.
When inserting I use tuples like {:insert, :product, index}.