Directus9 使用Graphql进行数据查询

后端开发Directus 224

Directus app应用地址后面加参数:/graphql?query={modle{field1,field2}},比如

http://localhost:6055/graphql?query={article{id,title}}

将返回数据

{"data":{"article":[{"id":"1","title":"1Let's Checkout... Directus 9"},{"id":"2","title":"2Let's Checkout... Directus 9"}]}}

Post Comment