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

Edit : update model graphql

parent f68b317d
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ export class EngineResolver {
}
@Query(() => ListExperiments)
async experiments(
async experimentList(
@Args('page', { nullable: true, defaultValue: 0 }) page: number,
@Args('name', { nullable: true, defaultValue: '' }) name: string,
) {
......
......@@ -5,8 +5,11 @@ import { Author } from './author.model';
@ObjectType()
export class Experiment {
@Field({ nullable: true })
id?: string;
@Field()
id: string;
@Field()
name: string;
@Field(() => Author, { nullable: true, defaultValue: '' })
author?: Author;
......@@ -52,9 +55,6 @@ export class Experiment {
@Field()
algorithm: Algorithm;
@Field()
name: string;
}
@ObjectType()
......
......@@ -132,7 +132,8 @@ type Author {
}
type Experiment {
id: String
id: String!
name: String!
author: Author
createdAt: Float
updateAt: Float
......@@ -148,11 +149,11 @@ type Experiment {
coVariables: [String!]
filterVariables: [String!]
algorithm: Algorithm!
name: String!
}
type PartialExperiment {
id: String
name: String
author: Author
createdAt: Float
updateAt: Float
......@@ -168,7 +169,6 @@ type PartialExperiment {
coVariables: [String!]
filterVariables: [String!]
algorithm: Algorithm
name: String
}
type ListExperiments {
......@@ -180,7 +180,7 @@ type ListExperiments {
type Query {
domains(ids: [String!] = []): [Domain!]!
experiments(name: String = "", page: Float = 0): ListExperiments!
experimentList(name: String = "", page: Float = 0): ListExperiments!
experiment(id: String!): Experiment!
algorithms: [Algorithm!]!
}
......
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