is there any way to duplicate a collection, so I c...
# community-help
g
is there any way to duplicate a collection, so I can create an alias. • I have one collection called
lists
• I'd like to duplicate this to
lists-<TIME>
• drop the original
lists
• then alias
lists=>lists-<TIME>
@Jason Bosco maybe y'all have some way to easily achieve this on the backend?
j
One way to do this would be to use the documents/export endpoint on the old collection and then send the output to the documents/import endpoint of the new collection
g
gotcha, so I need to use the same schema to create a new collection, then export from old & import to new? Can't wait till y'all enable updating schemas on the fly 😅
j
That’s correct. Yup schema update is high in priority list!
g
oo just realized I can at least create the new collection via the console...sweet!
😄 1
j
And you can copy paste the old schema from the “Schema” section and edit as needed!
g
yup yup!