Update GraphQL DuoChat docs
Compare changes
- Jannik Lehmann authored
@@ -127,7 +127,7 @@ myFancyToggleToOpenChat.addEventListener('click', () => {
@@ -127,7 +127,7 @@ myFancyToggleToOpenChat.addEventListener('click', () => {
@@ -375,7 +375,7 @@ The GraphQL Subscription for Chat behaves slightly different because it's user-c
@@ -375,7 +375,7 @@ The GraphQL Subscription for Chat behaves slightly different because it's user-c
We therefore need to broadcast messages to multiple clients to keep them in sync. The `aiAction` mutation with the `chat` action behaves the following:
1. All complete Chat messages (including messages from the user) are broadcasted with the `userId`, `aiAction: "chat"` as identifier.
1. Chunks from streamed Chat messages and currently used tools are broadcasted with the `userId`, `resourceId`, and the `clientSubscriptionId` from the mutation as identifier.
@@ -417,8 +417,8 @@ Examples of GraphQL Subscriptions in a Vue component:
@@ -417,8 +417,8 @@ Examples of GraphQL Subscriptions in a Vue component:
@@ -433,8 +433,7 @@ Examples of GraphQL Subscriptions in a Vue component:
@@ -433,8 +433,7 @@ Examples of GraphQL Subscriptions in a Vue component:
Note that we still broadcast chat messages and currently used tools using the `userId` and `resourceId` as identifier.
However, this is deprecated and should no longer be used. We want to remove `resourceId` on the subscription as part of [this issue](https://gitlab.com/gitlab-org/gitlab/-/issues/420296).