1) I'm guaranteed to get { "A": "Low" } in segments, right? It's this way in my tests, but I just wanted to make sure that this is a guarantee and MongoDB won't handle the request asynchronously in some cases.
2) Also, the same question, for the case of a random MongoDB update command on a runtime collection.
Thanks,
Baris
Best Answer
C
Customer Support
said
over 6 years ago
Hey Baris,
This is the behavior you can expect from your question above so please let us know if you notice a problem with it.
In both cases I believe the answer is yes. Will investigate further.
Thanks,
Oisin
B
Baris Tumerkan
said
over 6 years ago
Thanks Oisin, a definitive answer would be great.
I use things like "var segments = player.getSegments ();" in modules, so that the module is independent of the script using the module, but I always worry about this a bit.
Customer Support
said
over 6 years ago
Answer
Hey Baris,
This is the behavior you can expect from your question above so please let us know if you notice a problem with it.
Baris Tumerkan
If I do:
player.SetSegment ("A", "Low");
and immediately after:
var segments = player.getSegments ();
1) I'm guaranteed to get { "A": "Low" } in segments, right? It's this way in my tests, but I just wanted to make sure that this is a guarantee and MongoDB won't handle the request asynchronously in some cases.
2) Also, the same question, for the case of a random MongoDB update command on a runtime collection.
Thanks,
Baris
This is the behavior you can expect from your question above so please let us know if you notice a problem with it.
Thanks,
Sean
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstCustomer Support
Hi Baris,
In both cases I believe the answer is yes.
Will investigate further.
Thanks,
Oisin
Baris Tumerkan
Thanks Oisin, a definitive answer would be great.
I use things like "var segments = player.getSegments ();" in modules, so that the module is independent of the script using the module, but I always worry about this a bit.
Customer Support
This is the behavior you can expect from your question above so please let us know if you notice a problem with it.
Thanks,
Sean
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics