feat: update instrument_sessions subgraph to 0.3.0#128
Merged
Conversation
@@ -1,15 +1,17 @@
schema
@link(url: "https://specs.apollo.dev/link/v1.0")
- @link(url: "https://specs.apollo.dev/join/v0.3", for: EXECUTION)
+ @link(url: "https://specs.apollo.dev/join/v0.4", for: EXECUTION)
{
query: Query
mutation: Mutation
subscription: Subscription
}
+directive @join__directive(graphs: [join__Graph!], name: String!, args: join__DirectiveArguments) repeatable on SCHEMA | OBJECT | INTERFACE | FIELD_DEFINITION
+
directive @join__enumValue(graph: join__Graph!) repeatable on ENUM_VALUE
-directive @join__field(graph: join__Graph, requires: join__FieldSet, provides: join__FieldSet, type: String, external: Boolean, override: String, usedOverridden: Boolean) repeatable on FIELD_DEFINITION | INPUT_FIELD_DEFINITION
+directive @join__field(graph: join__Graph, requires: join__FieldSet, provides: join__FieldSet, type: String, external: Boolean, override: String, usedOverridden: Boolean, overrideLabel: String) repeatable on FIELD_DEFINITION | INPUT_FIELD_DEFINITION
directive @join__graph(name: String!, url: String!) on ENUM_VALUE
@@ -164,7 +166,7 @@ type Instrument
}
type InstrumentSession
- @join__type(graph: INSTRUMENT_SESSIONS)
+ @join__type(graph: INSTRUMENT_SESSIONS, key: "instrumentSessionNumber proposal {proposalNumber}")
{
instrumentSessionId: Int!
instrumentSessionNumber: Int!
@@ -178,6 +180,13 @@ type InstrumentSession
roles: [InstrumentSessionRole!]!
}
+type InstrumentSessionMutations
+ @join__type(graph: INSTRUMENT_SESSIONS, key: "instrumentSessionNumber proposalNumber")
+{
+ instrumentSessionNumber: Int!
+ proposalNumber: Int!
+}
+
type InstrumentSessionRole
@join__type(graph: INSTRUMENT_SESSIONS)
{
@@ -187,6 +196,8 @@ type InstrumentSessionRole
onSite: Boolean!
}
+scalar join__DirectiveArguments
+
scalar join__FieldSet
enum join__Graph {
@@ -234,9 +245,11 @@ type LogEntry
"""The root mutation of the service"""
type Mutation
+ @join__type(graph: INSTRUMENT_SESSIONS)
@join__type(graph: SAMPLES)
@join__type(graph: WORKFLOWS)
{
+ instrumentSession(proposalNumber: Int!, instrumentSessionNumber: Int!): InstrumentSessionMutations @join__field(graph: INSTRUMENT_SESSIONS)
createSamples(input: CreateSampleInput!): [Sample!]! @join__field(graph: SAMPLES) @deprecated(reason: "Will be replaced by createOrValidateSamples")
createOrValidateSamples(input: CreateOrValidateSampleInput!): CreateSamplesResponse! @join__field(graph: SAMPLES)
sample(sampleId: UUID!): SampleMutations @join__field(graph: SAMPLES)
@@ -245,6 +258,7 @@ type Mutation
"""Information about pagination in a connection"""
type PageInfo
+ @join__type(graph: INSTRUMENT_SESSIONS)
@join__type(graph: SAMPLES)
@join__type(graph: WORKFLOWS)
{
@@ -254,15 +268,15 @@ type PageInfo
"""When paginating forwards, the cursor to continue."""
endCursor: String
- """When paginating backwards, are there more items?"""
- hasPreviousPage: Boolean!
-
"""When paginating forwards, are there more items?"""
hasNextPage: Boolean!
+
+ """When paginating backwards, are there more items?"""
+ hasPreviousPage: Boolean!
}
type Proposal
- @join__type(graph: INSTRUMENT_SESSIONS)
+ @join__type(graph: INSTRUMENT_SESSIONS, key: "proposalNumber")
{
proposalNumber: Int!
proposalCategory: String
@@ -282,6 +296,20 @@ type ProposalAccount
role: String!
}
+type ProposalConnection
+ @join__type(graph: INSTRUMENT_SESSIONS)
+{
+ edges: [ProposalEdge!]!
+ pageInfo: PageInfo!
+}
+
+type ProposalEdge
+ @join__type(graph: INSTRUMENT_SESSIONS)
+{
+ cursor: String!
+ node: Proposal!
+}
+
enum ProposalState
@join__type(graph: INSTRUMENT_SESSIONS)
{
@@ -300,7 +328,7 @@ type Query
proposal(proposalNumber: Int!): Proposal @join__field(graph: INSTRUMENT_SESSIONS)
"""Get a list of proposals"""
- proposals(proposalCategory: String = null): [Proposal!]! @join__field(graph: INSTRUMENT_SESSIONS)
+ proposals(proposalCategory: String = null, first: Int = null, last: Int = null, after: String = null, before: String = null): ProposalConnection! @join__field(graph: INSTRUMENT_SESSIONS)
"""Get a instrument session"""
instrumentSession(proposalNumber: Int!, instrumentSessionNumber: Int!): InstrumentSession @join__field(graph: INSTRUMENT_SESSIONS) |
VictoriaBeilsten-Edmands
approved these changes
Jan 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Repository
Subgraph maintainers
@DiamondLightSource/ulims