Benoît Claveau

Results 4 comments of Benoît Claveau

Hello @realmikesolo, this workaround is not feasible as it will create multiple parameters for the request. My request is more complex and requires an array of 100 values.

Hi Amy, Here is the information you need: 1. Steps to reproduce ```javascript import mattermost from "@mattermost/client"; const client = new mattermost.WebSocketClient(); client.initialize(`https://${process.env.HOST}/api/v4/websocket`, process.env.TOKEN); client.addMessageListener(message => { console.log(message); }); ```...

Thanks, Here is an example with dynamic import (esm): ```javascript if (!globalThis.WebSocket) { const { WebSocket } = await import("ws"); globalThis.WebSocket = WebSocket as typeof globalThis.WebSocket; } ```

You need to use $elemMatch to update a neasted array. https://docs.mongodb.com/manual/reference/operator/query/elemMatch/