im definitely just stupid but I cant figure this out.
I finally have a turn based card game made, and the match joining and leaving works, and I just need to store how many cards are left each turn.
all the example go over using multiple docs per player in a collection, but I want 1 doc per match.
I know that should be as simple but i just cant get it to work.
Hi Adam,
Like in the other forum post, this can be solved by wrapping the second argument to update in a $set operator.
{$set: {"cardsLeft":cardsLeft}}
-Pádraig
Adam McCallister
im definitely just stupid but I cant figure this out.
I finally have a turn based card game made, and the match joining and leaving works, and I just need to store how many cards are left each turn.
all the example go over using multiple docs per player in a collection, but I want 1 doc per match.
I know that should be as simple but i just cant get it to work.
Hi Adam,
Like in the other forum post, this can be solved by wrapping the second argument to update in a $set operator.
{$set: {"cardsLeft":cardsLeft}}
-Pádraig
Customer Support
Hi Adam,
Like in the other forum post, this can be solved by wrapping the second argument to update in a $set operator.
{$set: {"cardsLeft":cardsLeft}}
-Pádraig
-
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