Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Subscribe to decision evaluation updates #344

Merged
merged 1 commit into from
Mar 2, 2023

Conversation

saig0
Copy link
Contributor

@saig0 saig0 commented Mar 2, 2023

Description

Add a new subscription to the GraphQL API for decision evaluations.


Subscribe to all decision evaluations:

subscription {
  decisionEvaluationUpdates {
    key
    decision {
      key
      decisionId
    }
    decisionOutput
    state
  }
}

Response message:

{
  "data": {
    "decisionEvaluationUpdates": {
      "key": "2251799813685390",
      "decision": {
        "key": "2251799813685277",
        "decisionId": "decision_a"
      },
      "decisionOutput": "\"A+\"",
      "state": "EVALUATED"
    }
  }
}

Related to #286

@saig0 saig0 merged commit 5def3ef into main Mar 2, 2023
@saig0 saig0 deleted the decision-evaluation-subscription branch March 2, 2023 08:27
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