I want to be able to view player’s data in a read format only state in any version that’s stored and because I use Profile Service; I naturally used ProfileStore:ViewProfileAsync().
I sub in my profile_key, but then I can also input a version param which is of the type: string.
However I am unsure what the version is and where to even find the version.
In the official document the given example is this:
As you can see, version is meant to be a DataStore key version which I cannot find.
I have tried using local Query = ProfileStore:ProfileVersionQuery()
and then used Query:NextAsync()
but that didn’t seem to tell me anything, even looking inside the meta data. So now I’ve just gotten myself confused. Perhaps I’m just being blind, so please enlighten me with any help about this.
However to me, using DataStore:ListVersionsAsync() feels counter intuitive to get the version key when I’m using ProfileService. And the fact that ProfileStore:ProfileVersionQuery() uses DataStore:ListVersionsAsync() in itself. So I decided to modify the function where it prints and can return the version number it is currently querying!