We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stack overflow!! my example: WhereTree nested recursive ;
WhereTree
enum LJ_TYPE { AND, OR, NOT, DSELF } enum OPERATOR { EQ,NE,GE,LE,GT,LT,BTW,IN,LK, EMPTY,NULL,EXI,NEXI,TRUE,FALSE,NNULL,NEMPTY } input WhereLeaf { s:String, o:OPERATOR, l:ExpressItem, r:ExpressItem, sv:String, sa:[String], dt:String, dv:Float, lv:Int, dta:[String], da:[Float], la:[Int] } input WhereTree { lj:LJ_TYPE, a:WhereLeaf, as:[WhereLeaf], w:WhereTree, ws:[WhereTree], sup:WhereTree } input ExpressItem { y:String, l:ExpressItem, r:ExpressItem, s:String, sub:SubSelect, cwt:[CaseExpression], a:[ExpressItem], sv:String, lv:Int, dv:Float, dt:String, bv:Boolean, len:Int } input SubSelect { s:String, e:ExpressItem, from:String, where: WhereTree, grp:[ExpressItem], hav:WhereTree } input CaseExpression { w:ExpressItem, b: WhereTree, t:ExpressItem } extend type Query { findAllEQPsFilter_delete(where: WhereTree, offset:Int, first:Int, orderBy:String, asc:Boolean): [EQP]! }
WhereTree can not use NOW!
The text was updated successfully, but these errors were encountered:
Probably fixed with #414
Sorry, something went wrong.
A simplified version of this works:
class TempTest { @Test fun test() { val schema = SchemaParser.newParser() .resolvers(Query()) .schemaString( """ input WhereLeaf { l: ExpressItem } input WhereTree { a:WhereLeaf, as:[WhereLeaf] } input ExpressItem { l:ExpressItem, sub:SubSelect, cwt:[CaseExpression], a:[ExpressItem] } input SubSelect { e:ExpressItem, where: WhereTree, grp:[ExpressItem], hav:WhereTree } input CaseExpression { w:ExpressItem, b: WhereTree } type Query { find(where: WhereTree): Int } """) .build() .makeExecutableSchema() assertNotNull(schema) } private class Query : GraphQLQueryResolver { fun find(where: WhereTree): Int = 0 } data class WhereTree(val a: WhereLeaf, val `as`: List<WhereLeaf>) data class WhereLeaf(val l: ExpressItem) data class ExpressItem(val l: ExpressItem?, val sub: SubSelect, val cwt: List<CaseExpression>, val a: List<ExpressItem>) data class SubSelect(val e: ExpressItem, val where: WhereTree, val grp: List<ExpressItem>, val hav: WhereTree) data class CaseExpression(val w: ExpressItem, val b: WhereTree) }
No branches or pull requests
stack overflow!!
my example:
WhereTree
nested recursive ;WhereTree can not use NOW!
The text was updated successfully, but these errors were encountered: