Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js Graphql:在对象的数组字段中查找值_Node.js_Postgresql_Graphql_Graphql Js - Fatal编程技术网

Node.js Graphql:在对象的数组字段中查找值

Node.js Graphql:在对象的数组字段中查找值,node.js,postgresql,graphql,graphql-js,Node.js,Postgresql,Graphql,Graphql Js,我想在标记字段中筛选列表值['500','600']。 标记字段为[]varchar 与mongodb类似:{tags:{$in:['500',600']}} 我尝试使用graphql。但它不起作用 questions(where: {tags: {_in: ["500ae"]}}) { id } } 结果错误: { "errors": [ { "extensions": { "path": "$", "code": "constr

我想在标记字段中筛选列表值['500','600']。 标记字段为[]varchar

与mongodb类似:
{tags:{$in:['500',600']}}

我尝试使用graphql。但它不起作用

  questions(where: {tags: {_in: ["500ae"]}}) {
    id
  }
}
结果错误:

{
 "errors": [
   {
     "extensions": {
       "path": "$",
       "code": "constraint-error"
     },
     "message": "type \"_varchar[]\" does not exist"
   }
 ]
}

请向我们展示解决
问题的后端代码。目前为止,我们无法从您提供的信息中告诉您任何信息,只是您的后端抛出了一个错误。@Bergi你好,Bergi,首先。我很抱歉,因为我的英语不好。你想看什么?I所有相关代码用于解决可能引发约束错误的查询。请阅读帮助部分。用它作为你的问题的模板,你会得到更好的答案。