Qo'shish bog'liqlik: Kotlin loyihasida, siz MongoDB drayverining bog'liqligini build.gradle (Gradle uchun) yoki build.gradle.kts (Kotlin DSL uchun) fayliga qo'shishingiz kerak. Bu erda Gradle uchun misol: groovy Kodni ko'chirib olish 'org.mongodb:mongodb-driver-sync:4.2.3' MongoDB aloqasi yaratish: MongoDB mijozini MongoDB serveringizga ulanish uchun ishga tushiring. Localhost va 27017 ni tegishli MongoDB server manzili va porti bilan almashtiring. Kotlin kodini import qiling.mongodb.client.MongoClients valcents = MongoClients.create.("mongodb://localhost:217") ma'lumotlar bazasi: MongoDB ma'lumotlar bazasi bilan ishlashni
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence