Skip to content
Snippets Groups Projects
Commit e7960bd7 authored by stevereis's avatar stevereis
Browse files

Add group root for tree view representation

parent 8758d184
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,7 @@ export default class ExaremeService implements IEngineService {
id: data.code,
label: data.label,
groups: groups,
rootGroup: dataToGroup(data.metadataHierarchy),
datasets: data.datasets ? data.datasets.map(dataToCategory) : [],
variables: data.metadataHierarchy
? this.flattenVariables(data.metadataHierarchy, groups)
......
......@@ -6,4 +6,7 @@ import { Group } from './group.model';
export class Domain extends Group {
@Field(() => [Category])
datasets: Category[];
@Field(() => Group)
rootGroup: Group;
}
......@@ -31,6 +31,7 @@ type Domain {
groups: [Group!]!
variables: [Variable!]!
datasets: [Category!]!
rootGroup: Group!
}
type Query {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment