diff options
Diffstat (limited to 'api/graphql/schema/operation.graphql')
-rw-r--r-- | api/graphql/schema/operation.graphql | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/api/graphql/schema/operation.graphql b/api/graphql/schema/operation.graphql new file mode 100644 index 00000000..ed952c06 --- /dev/null +++ b/api/graphql/schema/operation.graphql @@ -0,0 +1,25 @@ +"""An operation applied to an entity.""" +interface Operation { + """The identifier of the operation""" + id: ID! + """The operations author.""" + author: Identity! + """The datetime when this operation was issued.""" + date: Time! @goField(name: "Time") +} + +# Connection + +"""The connection type for an Operation""" +type OperationConnection { + edges: [OperationEdge!]! + nodes: [Operation!]! + pageInfo: PageInfo! + totalCount: Int! +} + +"""Represent an Operation""" +type OperationEdge { + cursor: String! + node: Operation! +} |