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]
}
如何允许模式接受逻辑运算符