diff --git a/gql.go b/gql.go index 7abfca8..783325d 100644 --- a/gql.go +++ b/gql.go @@ -491,6 +491,10 @@ func GQLInterfaceResource() * graphql.Interface { Type: GQLListResource(), }) + gql_interface_resource.AddFieldConfig("Children", &graphql.Field{ + Type: GQLListResource(), + }) + gql_interface_resource.AddFieldConfig("Owner", &graphql.Field{ Type: GQLInterfaceNode(), }) @@ -573,6 +577,11 @@ func GQLTypeGQLServer() * graphql.Object { Resolve: GQLResourceParents, }) + gql_type_gql_server.AddFieldConfig("Children", &graphql.Field{ + Type: GQLListResource(), + Resolve: GQLResourceParents, + }) + gql_type_gql_server.AddFieldConfig("Owner", &graphql.Field{ Type: GQLInterfaceNode(), Resolve: GQLResourceOwner, @@ -617,6 +626,11 @@ func GQLTypeBaseResource() * graphql.Object { Resolve: GQLResourceParents, }) + gql_type_gql_server.AddFieldConfig("Children", &graphql.Field{ + Type: GQLListResource(), + Resolve: GQLResourceParents, + }) + gql_type_base_resource.AddFieldConfig("Owner", &graphql.Field{ Type: GQLInterfaceNode(), Resolve: GQLResourceOwner,