gatsby - 如何使用 gatsby-cloudinary-plugin 进行过滤
问题描述
我尝试在 gatsby 中过滤来自 cloudinary 的查询。
我在graphql中试过这个:
query {
allCloudinaryMedia (
filter: {
tags: {
eq: "antwerp"
}
}
) {
edges {
node {
id
resource_type
url
}
}
}
}
我在 cloudinary 中将一张照片标记为“安特卫普”。没有错误,但没有任何显示。
解决方案
我排序。安装插件后,我们需要在文件“gatsby-config.js”中为插件设置一个配置,就像我做的那样。但是在选项中我错过了将选项标签设置为 true。
推荐阅读
- python - docker compose links hastname 在 python 中找不到
- laravel - 在 Elastic Beanstalk 中插入新的 Nginx conf
- c# - 将多个表单条目添加到列表
ASP.NET 核心 - reactjs - Preact bundle size 与 create-react-app 相比太大了吗?
- javascript - 将参数(变量)传递给已经可以从闭包中访问它们的函数是否有意义?
- pine-script - 如何编写 pinescript 以使信号在整个历史中显示?
- java - 欢迎监听器不起作用(Java Discord JDA)
- date - Tableau 日期函数和 Y0Y 比较
- python - Pandas 在数据框列上滑动窗口
- javascript - 从 Mapbox Geocoder 获取选定的地址值