Sign In Register

How can we help you today?

Start a new topic
Answered

Database matchInstance access

I need to access to matchInstance collection and get players' id in a match. but my script return no value at all. am i missing something?

I tried those:


var players = Spark.find("matchInstance", {"_id": matchID}, {"players":1 , "_id" : 0});

var players = Spark.find("SYSTEM.matchInstance", {"_id": matchID}, {"players":1 , "_id" : 0});


Best Answer

Hey There,

I think what you are looking for is the match details request [here].
You already know the matchID right? you just want to get the opponent details? Let me know if that works for you.


-Sean

1 Comment

Answer

Hey There,

I think what you are looking for is the match details request [here].
You already know the matchID right? you just want to get the opponent details? Let me know if that works for you.


-Sean

Login to post a comment