v5.23.0 - Feedback wanted on GQL-compliant status objects 📣 #597
StephenCathcart
started this conversation in
Preview Feature Announcement
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In version 5.23.0 (#588), we introduce a new preview API to the driver, GQL-compliant status objects.
GqlStatusObject
is a GQL-compliantNotification
object and status of query execution, this new object includesGqlStatus
andStatusDescription
.ResultSummary.GqlStatusObjects()
always contains at least 1 status representing theSuccess
,No Data
orOmitted Result
.The GqlStatusObjects will be presented in the following order:
02xxx
) has precedence over a warning;01xxx
) has precedence over a success.00xxx
) has precedence over anything informational (03xxx
)Migration from Notification
Most properties in
Notification
exist in the newGqlStatusObject
, exceptCode
andTitle
.The
GqlStatusObject.GqlStatus
is equivalent toCode
inNotification
, but with values compliant with GQL.The properties
GqlStatusObject.Classification
andGqlStatusObject.RawClassification
are equivalent toNotification.Category
andNotification.RawCategory
. The name change is needed because Category has a different meaning in GQL.Usage
Disabling GqlStatusObjects can be done in the same way as disabling Notifications. However, non-notification status can not be filtered (such as Success or No Data):
Iterating through GqlStatusObjects is also done in a similar way as Notifications:
Feedback wanted
This new API is currently marked as preview. What it means is that we are eagerly waiting for your feedback. Does it work well in your scenario? Do you wish there was more?
Let us know so we can correct course in the next releases!
Beta Was this translation helpful? Give feedback.
All reactions