我的数据的结构如下:
$forumId:
topics:
$topicId:
creator: string,
topic: string,
posts:
$postId:
author_id: string,
time: int,
content: string
我想获取论坛的最新帖子,但不确定如何。这是查询的一个开始。由于某些子项是变量,我该如何设置查询?
client.NewRef(ForumId).Child("topics").Child("not sure").Child("posts").Child("not sure").OrderByChild("time").LimitToLast(1).GetOrdered(ctx)