목록익스프레스 (2)
taenyLog

https://www.mongodb.com/community/forums/t/option-usecreateindex-is-not-supported/123048 Option usecreateindex is not supported I am trying to connect mongoDB to my web app but it is saying that usercreateindex is not supported please help me with this This is the code from my index.js file const express = require('express'); const app = express(); const mongoose = require('mongoos www.mongodb.c..
async와 await는 JavaScript에서 비동기 작업을 처리하기 위한 키워드입니다. 비동기 작업은 일반적으로 네트워크 요청, 파일 읽기/쓰기, 데이터베이스 쿼리 등 시간이 오래 걸리는 작업을 말합니다. 이러한 작업은 동기적으로 처리하면 프로그램의 실행이 블로킹되어 다른 작업을 수행할 수 없게 됩니다. 이를 해결하기 위해 비동기 작업을 사용합니다. async 키워드는 비동기 함수를 정의할 때 사용됩니다. 이 함수는 항상 Promise를 반환하게 됩니다. await 키워드는 비동기 함수 내부에서 다른 비동기 작업이 완료될 때까지 기다리는 역할을 합니다. await 키워드는 Promise 앞에 사용되며, 해당 Promise가 처리될 때까지 함수의 실행을 일시 중단합니다. 이를 통해 코드가 동기적으로 작..