Skip to content
This repository was archived by the owner on Jan 18, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/graphql/Hooks.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ type Hook {
hookId: ID!
metadata: HookMetadata!
schedule: [String]!
bindings: JSON!
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a particular format to a binding? Also, isn't bindings an array of binding? I was thinking something more along the lines of:

type HookBinding {
  # Define shape here
}

type Hook {
  # ...
  bindings: [HookBinding]!
  # ...
}

task: HookTask!
expires: DateTime!
deadline: DateTime!
Expand All @@ -83,6 +84,7 @@ type DeleteHook {
input HookInput {
metadata: HookMetadataInput!
schedule: [String]
bindings: JSON!
expires: String
deadline: String
task: JSON!
Expand Down