Skip to content

Commit 9b375d6

Browse files
committed
bugs fixed
1 parent 51bd7c5 commit 9b375d6

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

cls/GraphQL/Scope/All.cls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ ClassMethod GetProperties(classname As %Dictionary.CacheClassname) As %List
2828
set class = ##class(%Dictionary.CompiledClass).%OpenId(classname)
2929
for i=1:1:class.Properties.Count()
3030
{
31-
3231
set property = class.Properties.GetAt(i)
33-
set type = property.Type
3432
if property.Internal || property.Calculated || property.ReadOnly || property.Private || property.Identity continue
33+
set type = property.Type
34+
//continue:$extract(property)="%"
3535
continue:'($$$classIsPersistent(type) || $$$classIsSerial(type) || $$$classIsStream(type) || $$$classIsDataType(type))
3636
continue:type="%Library.RegisteredObject"
3737
set list = list _ $lb(property.Name)

cls/GraphQL/Scope/Package.cls

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Class GraphQL.Scope.Package Extends Abstract
22
{
33

4-
Parameter Package = {"DeepSee"};
4+
Parameter Package = {"Sample"};
55

66
/// This method should return a list of classes, available for GraphQL
77
ClassMethod GetClasses() As %List
@@ -23,15 +23,16 @@ ClassMethod GetClasses() As %List
2323
/// This method should return a list of class fields, available for GraphQL
2424
ClassMethod GetProperties(classname As %Dictionary.CacheClassname) As %List
2525
{
26-
if ($$$classIsPersistent(classname))
27-
{
26+
if ($$$classIsPersistent(classname) || $$$classIsSerial(classname))
27+
{
2828
set list = ""
2929
set class = ##class(%Dictionary.CompiledClass).%OpenId(classname)
3030
for i=1:1:class.Properties.Count()
3131
{
3232
set property = class.Properties.GetAt(i)
33-
set type = property.Type
3433
if property.Internal || property.Calculated || property.ReadOnly || property.Private || property.Identity continue
34+
set type = property.Type
35+
//continue:$extract(property)="%"
3536
continue:'($$$classIsPersistent(type) || $$$classIsSerial(type) || $$$classIsStream(type) || $$$classIsDataType(type))
3637
continue:type="%Library.RegisteredObject"
3738
set list = list _ $lb(property.Name)

cls/GraphQL/Scope/Superclass.cls

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,21 @@ ClassMethod GetClasses() As %List
2020
quit list
2121
}
2222

23+
// w ##class(GraphQL.Scope.Superclass).GetProperties()
24+
2325
/// This method should return a list of class fields, available for GraphQL
2426
ClassMethod GetProperties(classname As %Dictionary.CacheClassname) As %List
2527
{
26-
if ($$$classIsPersistent(classname))
28+
if ($$$classIsPersistent(classname) || $$$classIsSerial(classname))
2729
{
2830
set list = ""
2931
set class = ##class(%Dictionary.CompiledClass).%OpenId(classname)
3032
for i=1:1:class.Properties.Count()
3133
{
32-
3334
set property = class.Properties.GetAt(i)
34-
set type = property.Type
3535
if property.Internal || property.Calculated || property.ReadOnly || property.Private || property.Identity continue
36+
set type = property.Type
37+
//continue:$extract(property)="%"
3638
continue:'($$$classIsPersistent(type) || $$$classIsSerial(type) || $$$classIsStream(type) || $$$classIsDataType(type))
3739
continue:type="%Library.RegisteredObject"
3840
set list = list _ $lb(property.Name)

0 commit comments

Comments
 (0)