Skip to content

Commit 055753d

Browse files
committed
Generate.cls deleted, persistent class supported
1 parent 3fd43f7 commit 055753d

File tree

2 files changed

+6
-140
lines changed

2 files changed

+6
-140
lines changed

cls/GraphQL/Query/Generate.cls

Lines changed: 0 additions & 136 deletions
This file was deleted.

cls/GraphQL/Query/GenerateClass.cls

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,11 @@ Method AppendField(name As %String, classname As %Dictionary.ClassDefinition, pa
222222
set ..Row = ..Row _ """" _ name _ """:(##class(GraphQL.Utils.SQL).ListToArray(" _ field _ "))"
223223
set name = "%INTERNAL(" _ name _ ")"
224224
}
225-
226-
set ..Select = ..Select _ path _ $select(path'="":"_" ,1:"") _ name
225+
226+
if (path '= "") {
227+
set objType = $$$comMemberKeyGet(classname,$$$cCLASSproperty,path,$$$cPROPtype)
228+
}
229+
set ..Select = ..Select _ path _ $select(path'="":$select($$$classIsSerial(objType):"_",$$$classIsPersistent(objType):"->") ,1:"") _ name
227230

228231
do ..FieldCount.SetAt(fieldCount, ..QueryCount)
229232
}
@@ -300,5 +303,4 @@ Method Alias(alias As GraphQL.AST.GraphQLFieldSelection) As %Status
300303
quit $$$OK
301304
}
302305

303-
}
304-
306+
}

0 commit comments

Comments
 (0)