1

In the admin page of your Directus CMS you can see, when using a M2M and related O2M relation the number of records in the relation. I would like to display, using vuejs, that cardinality next to the category field and hide the categories with no relation yet.

Any idea on this ?

Directus CMS collection with o2m relation

4

1 回答 1

0

好吧,它看起来像这样

https://api........./items/blog_categories?meta=total_count&result_count&fields=*.*

所以仅此而已......并且可以省略元数据,因为在我的问题的上下文中它并不重要。

于 2020-02-22T07:49:41.050 回答