DAIXK Store.getBy(type: String, key: String, value: *) where is the all type value ? i know has 'posts, users,', i want get _post_mentions_user Databases data.
clarkwinkelmann DAIXK you can see how the replies extension gets post.mentionedBy() from the store here for example https://github.com/flarum/mentions/blob/v0.1.0-beta.13/js/src/forum/addMentionedByList.js#L15 Relationships have no actual resource name. They are accessed via the relationship method on the corresponding model. For something to be in the store, it has to be loaded via a REST API call first. Depending on what you're trying to build you might need to load that additional data yourself. Could you maybe describe in more details what you are trying to accomplish?
DAIXK clarkwinkelmann thanks~ i check api doc https://api.flarum.dev/js/v0.1.0-beta.11/class/src/common/Store.js~Store.html not mentionedBy function. may be need update. i exploit extend. it change postStream Sort by mentioned. more Intuitive eg: