Skip to content
Snippets Groups Projects
schema.gql 3.12 KiB
Newer Older
# ------------------------------------------------------
# THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
# ------------------------------------------------------

type Category {
  id: String!
Steve Reis's avatar
Steve Reis committed
  label: String
type Group {
  id: String!
  label: String
  description: String
  groups: [Group!]!

  """List of variable's ids"""
  variables: [String!]!
type Variable {
Steve Reis's avatar
Steve Reis committed
  label: String
  type: String!
  enumerations: [Category!]
  groups: [Group!]
Steve Reis's avatar
Steve Reis committed
  label: String
  description: String
  groups: [Group!]!
  variables: [Variable!]!
  datasets: [Category!]!
  rootGroup: Group!
type AlgorithmParameter {
  name: String!
  value: [String!]
  label: String
  description: String
  defaultValue: String
  isMultiple: Boolean
  isRequired: Boolean
  min: String
  max: String
  type: String
}

type Algorithm {
  name: String!
  parameters: [AlgorithmParameter!]
  label: String
  type: String
  description: String
}

type GroupResult {
  name: String!
  description: String
  results: [ResultUnion!]!
}

union ResultUnion = TableResult | RawResult | GroupsResult

type TableResult {
  name: String!
  data: [[String!]!]!
  headers: [Header!]!
}

type RawResult {
  rawdata: JSON!
The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
scalar JSON @specifiedBy(url: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf")

type GroupsResult {
  groups: [GroupResult!]!
}

type Header {
  name: String!
  type: String!
type Experiment {
  uuid: String
  author: String
  createdAt: Float
  updateAt: Float
  finishedAt: Float
  viewed: Boolean
  status: String
  shared: Boolean!
  results: [ResultUnion!]
  datasets: [String!]!
  filter: String
  domain: String!
  variables: [String!]!
  algorithm: Algorithm!
  name: String!
type PartialExperiment {
  uuid: String
  author: String
  createdAt: Float
  updateAt: Float
  finishedAt: Float
  viewed: Boolean
  status: String
  shared: Boolean
  results: [ResultUnion!]
  datasets: [String!]
  filter: String
  domain: String
  variables: [String!]
  algorithm: Algorithm
  name: String
}

type ListExperiments {
  currentPage: Float
  totalPages: Float
  totalExperiments: Float
  experiments: [Experiment!]!
}

  domains(ids: [String!] = []): [Domain!]!
  experiments(name: String = "", page: Float = 0): ListExperiments!
  expriment(uuid: String!): Experiment!
  algorithms: [Algorithm!]!
Steve Reis's avatar
Steve Reis committed

type Mutation {
stevereis's avatar
stevereis committed
  createExperiment(isTransient: Boolean = false, data: ExperimentCreateInput!): Experiment!
  editExperiment(data: ExperimentEditInput!, uuid: String!): Experiment!
  removeExperiment(uuid: String!): PartialExperiment!
input ExperimentCreateInput {
stevereis's avatar
stevereis committed
  datasets: [String!]!
  filter: String
  domain: String!
  variables: [String!]!
  algorithm: AlgorithmInput!
  name: String!

input AlgorithmInput {
  name: String!
  parameters: [AlgorithmParamInput!] = []
  type: String!
}

input AlgorithmParamInput {
  name: String!
  value: [String!]!
}

input ExperimentEditInput {
  name: String
  viewed: Boolean
}