Add control state transitions graphql resolver
Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
@@ -14,10 +14,10 @@ interface Node {
|
||||
}
|
||||
|
||||
enum ControlState {
|
||||
NotStarted
|
||||
InProgress
|
||||
NotApplicable
|
||||
Implemented
|
||||
NOT_STARTED
|
||||
IN_PROGRESS
|
||||
NOT_APPLICABLE
|
||||
IMPLEMENTED
|
||||
}
|
||||
|
||||
|
||||
@@ -85,6 +85,13 @@ type Control implements Node {
|
||||
description: String!
|
||||
state: ControlState!
|
||||
|
||||
stateTransisions(
|
||||
first: Int
|
||||
after: CursorKey
|
||||
last: Int
|
||||
before: CursorKey
|
||||
): ControlStateTransitionConnection! @goField(forceResolver: true)
|
||||
|
||||
tasks(
|
||||
first: Int
|
||||
after: CursorKey
|
||||
@@ -96,6 +103,25 @@ type Control implements Node {
|
||||
updatedAt: Datetime!
|
||||
}
|
||||
|
||||
type ControlStateTransitionConnection {
|
||||
edges: [ControlStateTransitionEdge!]!
|
||||
pageInfo: PageInfo!
|
||||
}
|
||||
|
||||
type ControlStateTransitionEdge {
|
||||
cursor: CursorKey!
|
||||
node: ControlStateTransition!
|
||||
}
|
||||
|
||||
type ControlStateTransition {
|
||||
id: ID!
|
||||
fromState: ControlState
|
||||
toState: ControlState!
|
||||
reason: String
|
||||
createdAt: Datetime!
|
||||
updatedAt: Datetime!
|
||||
}
|
||||
|
||||
type TaskConnection {
|
||||
edges: [TaskEdge!]!
|
||||
pageInfo: PageInfo!
|
||||
|
||||
Reference in New Issue
Block a user