er la requête."
                    document.getElementById("request-result").style.color = "red";
                }
            }

            async function exportResult () {
                var link = document.createElement("a");
                if (document.getElementById("export-select").value === 'json') {
                    link.setAttribute("href", encodeURI("data:application/json;charset=utf-8," + responseText));
                    link.setAttribute("download", database_name + "." + collection_n