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

Refactor MetaData to Metadata

parent 6f7d7bb4
No related branches found
No related tags found
No related merge requests found
import { Field, ObjectType } from '@nestjs/graphql';
@ObjectType()
export class MetaData {
export class Metadata {
@Field()
name: string;
......
import { Field, ObjectType } from '@nestjs/graphql';
import { MetaData } from './common/metadata.model';
import { Metadata } from './common/metadata.model';
import { Result } from './common/result.model';
@ObjectType()
......@@ -10,6 +10,6 @@ export class TableResult extends Result {
@Field(() => [[String]])
data: string[][];
@Field(() => [MetaData])
metadatas: MetaData[];
@Field(() => [Metadata])
metadatas: Metadata[];
}
......@@ -34,7 +34,7 @@ type Domain {
rootGroup: Group!
}
type MetaData {
type Metadata {
name: String!
type: String!
}
......@@ -59,7 +59,7 @@ type TableResult {
groupBy: String
name: String!
data: [[String!]!]!
metadatas: [MetaData!]!
metadatas: [Metadata!]!
}
type DummyResult {
......
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