This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="flex flex-col p-8 gap-8"> | |
<div class="flex flex-col p-6 gap-6"> | |
<div class="text-xl">一覧</div> | |
<div v-if="contents?.length" class="grid grid-cols-4 gap-4"> | |
<div v-for="content in contents" :key="content.id"> | |
<ContentHover :content="content" /> | |
</div> | |
</div> | |
<h6 v-else class="text-xl">該当する動画がありませんでした。</h6> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// use of mongodb | |
// | |
let collection = mongoClient.db(databaseName).collection(collectionName); | |
let cursor = await collection.find(); | |
while( await cursor.hasNext() ){ | |
let document = await cursor.next(); | |
}; |