Skip to content

Commit

Permalink
bugs fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
gevorg95 committed Apr 17, 2018
1 parent 51bd7c5 commit 9b375d6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions cls/GraphQL/Scope/All.cls
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ ClassMethod GetProperties(classname As %Dictionary.CacheClassname) As %List
set class = ##class(%Dictionary.CompiledClass).%OpenId(classname)
for i=1:1:class.Properties.Count()
{

set property = class.Properties.GetAt(i)
set type = property.Type
if property.Internal || property.Calculated || property.ReadOnly || property.Private || property.Identity continue
set type = property.Type
//continue:$extract(property)="%"
continue:'($$$classIsPersistent(type) || $$$classIsSerial(type) || $$$classIsStream(type) || $$$classIsDataType(type))
continue:type="%Library.RegisteredObject"
set list = list _ $lb(property.Name)
Expand Down
9 changes: 5 additions & 4 deletions cls/GraphQL/Scope/Package.cls
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class GraphQL.Scope.Package Extends Abstract
{

Parameter Package = {"DeepSee"};
Parameter Package = {"Sample"};

/// This method should return a list of classes, available for GraphQL
ClassMethod GetClasses() As %List
Expand All @@ -23,15 +23,16 @@ ClassMethod GetClasses() As %List
/// This method should return a list of class fields, available for GraphQL
ClassMethod GetProperties(classname As %Dictionary.CacheClassname) As %List
{
if ($$$classIsPersistent(classname))
{
if ($$$classIsPersistent(classname) || $$$classIsSerial(classname))
{
set list = ""
set class = ##class(%Dictionary.CompiledClass).%OpenId(classname)
for i=1:1:class.Properties.Count()
{
set property = class.Properties.GetAt(i)
set type = property.Type
if property.Internal || property.Calculated || property.ReadOnly || property.Private || property.Identity continue
set type = property.Type
//continue:$extract(property)="%"
continue:'($$$classIsPersistent(type) || $$$classIsSerial(type) || $$$classIsStream(type) || $$$classIsDataType(type))
continue:type="%Library.RegisteredObject"
set list = list _ $lb(property.Name)
Expand Down
8 changes: 5 additions & 3 deletions cls/GraphQL/Scope/Superclass.cls
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,21 @@ ClassMethod GetClasses() As %List
quit list
}

// w ##class(GraphQL.Scope.Superclass).GetProperties()

/// This method should return a list of class fields, available for GraphQL
ClassMethod GetProperties(classname As %Dictionary.CacheClassname) As %List
{
if ($$$classIsPersistent(classname))
if ($$$classIsPersistent(classname) || $$$classIsSerial(classname))
{
set list = ""
set class = ##class(%Dictionary.CompiledClass).%OpenId(classname)
for i=1:1:class.Properties.Count()
{

set property = class.Properties.GetAt(i)
set type = property.Type
if property.Internal || property.Calculated || property.ReadOnly || property.Private || property.Identity continue
set type = property.Type
//continue:$extract(property)="%"
continue:'($$$classIsPersistent(type) || $$$classIsSerial(type) || $$$classIsStream(type) || $$$classIsDataType(type))
continue:type="%Library.RegisteredObject"
set list = list _ $lb(property.Name)
Expand Down

0 comments on commit 9b375d6

Please sign in to comment.