Closed bigmontz closed 1 week ago
PR description is not up-to-date.
ResultSummary.gqlStatusObjects
always contains at least 1 status representing theSuccess
,No Data
orOmitted Result
. This status will be always the first one.
I thought this isn't the case.
When discarding records while connected to a non-GQL aware server, the driver might not be able to tell apart
Success
andNo Data
.
This only applies to the reactive driver, doesn't it? Might be worth being explicit here.
All following status are notifications like warnings about problematic queries or other valuable information that can be presented in a client.
See first point.
⚠️ This API is released as preview.
Introduces
ResultSummary.gqlStatusObjects
as preview feature.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
. When discarding records in a RxSession while connected to a non-GQL-aware server, the driver might not be able to tell apartSuccess
andNo Data
.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
)Migrating from Notification
Most of the properties present in the
Notification
are present in the new object, exceptcode
andtitle
. TheGqlStatusObject.gqlStatus
is equivalent ofcode
in theNotification
, but with values compliant with GQL. The propertiesGqlStatusObject.classification
andGqlStatusObject.rawClassification
are equivalent toNotification.category
andNotification.rawCategory
. The name change is needed becausecategory
has a different meaning in GQL.Configuration
Filtering
gqlStatusObjects
can be done using in the same way as filteringnotifications
. However, non-notification status can not be filtered (such asSuccess
orNo Data
). The propertydisabledClassifications
was added toNotificationFilter
for being named consistently with GQL. This property is equivalent todisabledCategories
and it be can used interchangeably. However, they can not be used at the same time. An exception will be raised in this scenario.⚠️ This API is released as preview.