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

Add username and fullname on experiment result

parent 55fac5e1
Branches
Tags
No related merge requests found
import { Field, ObjectType } from '@nestjs/graphql';
@ObjectType()
export class Author {
@Field({ nullable: true, defaultValue: '' })
username?: string;
@Field({ nullable: true, defaultValue: '' })
fullname?: string;
}
import { Field, ObjectType, PartialType } from '@nestjs/graphql';
import { ResultUnion } from '../result/common/result-union.model';
import { Algorithm } from './algorithm.model';
import { Author } from './author.model';
@ObjectType()
export class Experiment {
@Field({ nullable: true })
id?: string;
@Field({ nullable: true, defaultValue: '' })
author?: string;
@Field(() => Author, { nullable: true, defaultValue: '' })
author?: Author;
@Field({ nullable: true })
createdAt?: number;
......
......@@ -126,9 +126,14 @@ type Header {
type: String!
}
type Author {
username: String
fullname: String
}
type Experiment {
id: String
author: String
author: Author
createdAt: Float
updateAt: Float
finishedAt: Float
......@@ -147,7 +152,7 @@ type Experiment {
type PartialExperiment {
id: String
author: String
author: Author
createdAt: Float
updateAt: Float
finishedAt: Float
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment