Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.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
Graphql SDL中的逻辑或-字段名';或';未为输入对象类型定义的_Graphql_Schema_Graphql Js - Fatal编程技术网

Graphql SDL中的逻辑或-字段名';或';未为输入对象类型定义的

Graphql SDL中的逻辑或-字段名';或';未为输入对象类型定义的,graphql,schema,graphql-js,Graphql,Schema,Graphql Js,我正试图让那些成熟或高水平的学生返回学校 graphqlOperation(listStudents, { filter: { type: { eq: 'student' }, OR: [{ category: { eq: 'mature' }, { eq: 'highschool' }] }, }) ); 看起来我需要在模式中添加逻辑OR input TableStudentFilter

我正试图让那些成熟或高水平的学生返回学校

graphqlOperation(listStudents, {
        filter: {
          type: { eq: 'student' },
          OR: [{ category: { eq: 'mature' },  { eq: 'highschool'  }]
        },

      })
    );
看起来我需要在模式中添加逻辑OR

    input TableStudentFilterInput {
        ID: TableStringFilterInput
        type: TableStringFilterInput
        category: TableStringFilterInput
        name: TableStringFilterInput
    }
还有我的过滤器

input TableStringFilterInput {
    ne: String
    eq: String
    le: String
    lt: String
    ge: String
    gt: String
    contains: String
    notContains: String
    between: [String]
}
如何允许模式接受逻辑运算符