Skip to content

Commit

Permalink
entitites
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnnsrs committed Jul 31, 2024
1 parent 4bc1ab4 commit 9646c99
Show file tree
Hide file tree
Showing 26 changed files with 5,266 additions and 2,688 deletions.
4 changes: 0 additions & 4 deletions graphql/mikro-next/fragments/antibody.graphql

This file was deleted.

16 changes: 16 additions & 0 deletions graphql/mikro-next/fragments/entity.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
fragment Entity on Entity {
id
name
kind {
id
label
ontology {
id
name
}
}
group {
id
name
}
}
8 changes: 8 additions & 0 deletions graphql/mikro-next/fragments/entity_kind.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
fragment EntityKind on EntityKind {
id
label
ontology {
id
name
}
}
5 changes: 5 additions & 0 deletions graphql/mikro-next/fragments/experiment.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fragment Experiment on Experiment {
id
name
description
}
6 changes: 0 additions & 6 deletions graphql/mikro-next/fragments/fluorophore.graphql

This file was deleted.

1 change: 1 addition & 0 deletions graphql/mikro-next/fragments/image.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ fragment Image on Image {
...AcquisitionView
...RGBView
...WellPositionView
...SpecimenView
}
pinned
renders {
Expand Down
4 changes: 4 additions & 0 deletions graphql/mikro-next/fragments/ontology.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
fragment Ontology on Ontology {
id
name
}
9 changes: 9 additions & 0 deletions graphql/mikro-next/fragments/protocol.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
fragment Protocol on Protocol {
id
name
experiment {
id
name
description
}
}
14 changes: 14 additions & 0 deletions graphql/mikro-next/fragments/roi.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,19 @@ fragment ListROI on ROI {
id
name
}
entity {
id
name
kind {
label
}
parent {
id
name
kind {
label
}
}
}
vectors
}
17 changes: 17 additions & 0 deletions graphql/mikro-next/fragments/specimen.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
fragment Specimen on Specimen {
id
entity {
id
kind {
id
label
}
name
group {
id
}
}
protocol {
id
}
}
14 changes: 11 additions & 3 deletions graphql/mikro-next/fragments/views.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,21 @@ fragment LabelView on LabelView {
...View
id
fluorophore {
...Fluorophore
...Entity
}
primaryAntibody {
...Antibody
...Entity
}
secondaryAntibody {
...Antibody
...Entity
}
}

fragment SpecimenView on SpecimenView {
...View
id
specimen {
...Specimen
}
}

Expand Down
13 changes: 0 additions & 13 deletions graphql/mikro-next/mutations/antibody.graphql

This file was deleted.

40 changes: 0 additions & 40 deletions graphql/mikro-next/mutations/fluorophore.graphql

This file was deleted.

15 changes: 15 additions & 0 deletions graphql/mikro-next/queries/entity.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
query GetEntity($id: ID!) {
entity(id: $id) {
...Entity
}
}

query SearchEntities($search: String, $values: [ID!]) {
options: entities(
filters: { search: $search, ids: $values }
pagination: { limit: 10 }
) {
value: id
label: name
}
}
15 changes: 15 additions & 0 deletions graphql/mikro-next/queries/entity_kind.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
query GetEntityKind($id: ID!) {
entityKind(id: $id) {
...EntityKind
}
}

query SearchEntityKind($search: String, $values: [ID!]) {
options: entityKinds(
filters: { search: $search, ids: $values }
pagination: { limit: 10 }
) {
value: id
label: label
}
}
24 changes: 0 additions & 24 deletions graphql/mikro-next/queries/fluorophore.graphql

This file was deleted.

15 changes: 15 additions & 0 deletions graphql/mikro-next/queries/ontology.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
query GetOntology($id: ID!) {
ontology(id: $id) {
...Ontology
}
}

query SearchOntologies($search: String, $values: [ID!]) {
options: ontologies(
filters: { search: $search, ids: $values }
pagination: { limit: 10 }
) {
value: id
label: name
}
}
Loading

0 comments on commit 9646c99

Please sign in to comment.