Skip to content

Conversation

@dls-graph-schema-federator
Copy link
Contributor

@github-actions
Copy link

@@ -243,6 +243,12 @@ type Mutation
   submitWorkflowTemplate(name: String!, visit: VisitInput!, parameters: JSON!): Workflow! @join__field(graph: WORKFLOWS)
 }
 
+"""Represents Relay Node types"""
+union NodeValue
+  @join__type(graph: WORKFLOWS)
+  @join__unionMember(graph: WORKFLOWS, member: "Workflow")
+ = Workflow
+
 """Information about pagination in a connection"""
 type PageInfo
   @join__type(graph: SAMPLES)
@@ -322,6 +328,7 @@ type Query
 
   """Get a list of samples associated with a given instrument session"""
   samples(proposalNumber: Int!, instrumentSessionNumber: Int!, first: Int!, filter: SampleFilterInput! = {}, before: String = null, after: String = null, last: Int = null, orderBy: SampleOrder! = {}): SampleConnection! @join__field(graph: SAMPLES)
+  node(id: ID!): NodeValue @join__field(graph: WORKFLOWS)
 
   """Get a single [`Workflow`] by proposal, visit, and name"""
   workflow(visit: VisitInput!, name: String!): Workflow! @join__field(graph: WORKFLOWS)
@@ -629,6 +636,9 @@ scalar Void
 type Workflow
   @join__type(graph: WORKFLOWS)
 {
+  """The unique ID derived from the visit and name"""
+  id: ID!
+
   """The name given to the workflow, unique within a given visit"""
   name: String!
 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant