【问题标题】:Is there a way to filter trought "data" in a directus api?Is there a way to filter trought \"data\" in a directus api?
【发布时间】:2022-12-02 04:39:42
【问题描述】:

I'm trying to filter trough my simple directus api but I only need what's in the "Data" field how can you filter trough so you just see the data and not the title?

picture

I tried on putting some basics like blog/data or blog?fields=id,firstName but that doesn't filter away the title.

【问题讨论】:

  • What version are you running?

标签: api rest postman directus


【解决方案1】:

Here is a working example:

https://cuxhsjf3.directus.app/items/blog?filter={"firstName":{"_eq":"Elias"}}

This will filter all the blog posts by name and return only those where the author's `firstName is Elias.

Screenshot from Postman

For more about filtering, please visit an official docs.

【讨论】:

    猜你喜欢
    • 2022-12-02
    • 2022-12-01
    • 1970-01-01
    • 2022-12-02
    • 2022-12-01
    • 2022-12-28
    • 2022-12-26
    • 2022-07-14
    • 2022-12-01
    相关资源
    最近更新 更多