laravel - 如何在 Lighthouse GraphQl 和多个 where 查询中添加大于等于
问题描述
我安装了
composer require mll-lab/graphql-php-scalars:^4
在 config/app.php 中添加了提供
\Nuwave\Lighthouse\WhereConditions\WhereConditionsServiceProvider::class,
在我使用它来匹配等于之前
extend type Query @guard {
usertimesheetextrasWithCondition(query: TimesheetExtraQueryCondition): [UserTimesheetExtra!]!
@all
}
input TimesheetExtraQueryCondition {
project_id: ID @eq
billing_status: String @eq
status: String @eq
//But I want something like this
date: Date @gte
}
但收到此错误:
解决方案
推荐阅读
- typescript - 如何在新的组合 API 中键入计算属性?
- amazon-cognito - 将 Github 身份提供商添加到 AWS Cognito
- php - 使用 php 在另一个页面上使用 header() 函数提交 jquery 后重定向页面
- security - 使用动态用户进行 RabbitMQ 用户身份验证
- xamarin - Xamarin 表单 GoogleAds 显示外壳底部
- python-3.x - 在 Python 3 中将 16 位十六进制字符串转换为双精度值
- c# - Moq - 模拟 DbSet
.AddAsync 不引发任何调用 - python - mypy 找不到黑色的类型提示
- html - 如何在标签旁边的输入集中在具有多个标签的表单中并在css中输入时更改标签中文本的颜色
- c++ - GRPC C++ 异步服务器如何区分 WritesDone 和断开的连接