The following code returns an empty array in Cloud Code but returns 2 values in the NoSQL explorer. Is the collection "player" not available to query in Cloud Code? I just want to read from it.
In that case we would recommend adding them to the custom collection and then indexing the required fields. If you need any help getting this set up just let us know.
What exactly are you looking to do here ? Accessing any system collections in this manner generally isn't encouraged as they should be kept for system use. We have a Tips & Tricks guide on how to mirror certain user details to a custom runtime collection so you can query them when required. You can find it here. If you can go into detail about your requirements I'm sure we can point you in the right direction here.
Thanks,
Liam
C
Christopher Stewart
said
over 4 years ago
I need to get a list of userNames from playerIds. I only expect to do read operations when querying the player system collection.
Customer Support
said
over 4 years ago
Answer
Hi Christopher,
In that case we would recommend adding them to the custom collection and then indexing the required fields. If you need any help getting this set up just let us know.
Christopher Stewart
The following code returns an empty array in Cloud Code but returns 2 values in the NoSQL explorer. Is the collection "player" not available to query in Cloud Code? I just want to read from it.
Someone asked this, but didn't get a direct answer
https://support.gamesparks.net/support/discussions/topics/1000054737
Hi Christopher,
In that case we would recommend adding them to the custom collection and then indexing the required fields. If you need any help getting this set up just let us know.
Thanks,
Liam
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstCustomer Support
Hi Christopher,
What exactly are you looking to do here ? Accessing any system collections in this manner generally isn't encouraged as they should be kept for system use. We have a Tips & Tricks guide on how to mirror certain user details to a custom runtime collection so you can query them when required. You can find it here. If you can go into detail about your requirements I'm sure we can point you in the right direction here.
Thanks,
Liam
Christopher Stewart
I need to get a list of userNames from playerIds. I only expect to do read operations when querying the player system collection.
Customer Support
Hi Christopher,
In that case we would recommend adding them to the custom collection and then indexing the required fields. If you need any help getting this set up just let us know.
Thanks,
Liam
-
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 2486 topics