Troubles with understanding Pointers

Hello everybody! I have a question. How to declare pointer in C# in right way? I want an object that will be included into find. After fetching i want to get something like that:

player.User.username;//where player is HubPlayer, User is MoralisUser.

The second part of the question, is how to include part of the User document(Username) into query for table HubPlayer?

I try different ways. But dont find and solutions(read already, mongodb etc).
Now i have code:

MoralisQuery query = MoralisInterface.GetClient().Query();
But it returns only objectId;

maybe you can find some info here:

that include part should make it work, you can also try .Select

in case that still doesn’t work, you can make another query starting from that id

is that the current user object for current user? as you can not access any user object in front end because of ACL

No. I want to fetch all players in the room now with usernames. So. I must do for this some cloud function? Because ACL don’t allow me to get usernames of another users? I can change this? Can I create another field “nickname” for this purpose(not using in login, just for the display name) and grant access to this column all users(all to all)?

And one big question I still have. What’s a type of pointer in c#(Unity). And how to convert and fetch this item. You provide js solution. I dont see any “obj.Set(“name”, anotherObject)” in C#.

In ideal world. I want to fetch data like this:

User: {

In c#

You can use a cloud function for that. And you can call a cloud function as REST http too

Sorry. Another question. How to properly run parameters.

await MoralisInterface.GetClient().Cloud.RunAsync(“sendHubMessage”, new Dictionary<string, object> {{“text”, text}});

text here is a string. All ok. But serializer return error
JsonReaderException: Unexpected character encountered while parsing value: {. Path ‘’, line 1, position 1.
Newtonsoft.Json.JsonTextReader.ReadStringValue (Newtonsoft.Json.ReadType readType) (at :0)

I don’t know how to do it in C#, it may be easier to make a simple http request:

@wuzape I get the same while trying to run a query in cloud function and get the result back into Unity. Were you able to solve it?

1 Like

Thank you for response!