File tree Expand file tree Collapse file tree 5 files changed +6
-15
lines changed
3-web-servers/08-database Expand file tree Collapse file tree 5 files changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ This document is formatted with Prettier.
5858
5959## License
6060
61- ut.code(); Learn is licensed under the [ MIT license] ( https://github.com/ut-code/utcode-learn/blob/master /LICENSE ) .
61+ ut.code(); Learn is licensed under the [ MIT license] ( https://github.com/ut-code/utcode-learn/blob/main /LICENSE ) .
6262Copyright © 2023 ut.code();.
6363
6464## Contributing
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ npm run build
8989
9090## ライセンス
9191
92- ut.code(); Learn は [ MIT license] ( https://github.com/ut-code/utcode-learn/blob/master /LICENSE ) でライセンスされています。
92+ ut.code(); Learn は [ MIT license] ( https://github.com/ut-code/utcode-learn/blob/main /LICENSE ) でライセンスされています。
9393Copyright © 2023 ut.code();.
9494
9595## 貢献
Original file line number Diff line number Diff line change @@ -190,16 +190,7 @@ Node.jsからPrismaを利用してデータベースのデータを操作する
190190- [ ` PrismaClient#[テーブル名].findFirst ` メソッド] ( https://www.prisma.io/docs/reference/api-reference/prisma-client-reference#findfirst ) : 条件を満たす最初のレコードを取得
191191- [ ` PrismaClient#[テーブル名].findUnique ` メソッド] ( https://www.prisma.io/docs/reference/api-reference/prisma-client-reference#findunique ) : レコードを一意に識別できる条件を使用してレコードを1つだけ取得
192192
193- :::tip[ 非同期処理]
194-
195- 上記の3つのメソッドは、<Term >** 非同期処理** </Term >を行います。JavaScriptにおける非同期処理とは、ファイルの入出力やネットワーク通信など、JavaScriptの外側の時間のかかる処理の完了を待つ間、ほかの処理を実行できるようにする仕組みです。非同期処理を行う関数を使用するためには、次の2つを行います。
196-
197- - 非同期処理を行う関数を呼び出す関数を定義する際、` async ` キーワードをつけること
198- - 非同期処理を行う関数の戻り値に対し、` await ` 演算子を適用すること
199-
200- 非同期処理に関する詳細は、[ MDNの記事] ( https://developer.mozilla.org/ja/docs/Learn/JavaScript/Asynchronous ) を参照してください。
201-
202- :::
193+ これら3つのメソッドは、<Term >非同期処理</Term >を行います。
203194
204195まずは、` findMany ` メソッドの戻り値を、デバッガを用いて確認してみましょう。
205196
Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ const max = a > b ? a : b; // 6
236236
237237![ JSXとJavaScriptの入れ子構造] ( ./jsx-and-javascript.png )
238238
239- ### 課題
239+ ### 確認問題
240240
241241自分のテストの点数を表す変数` score ` を用意し、Reactで次を満たすプログラムを作成してください。
242242
@@ -390,7 +390,7 @@ export default function App() {
390390}
391391```
392392
393- ### 課題
393+ ### 確認問題
394394
395395先程の` students ` のデータを用いて、次のような表を作ってみましょう。
396396
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ const config = {
4545 docs : {
4646 showLastUpdateTime : true ,
4747 sidebarPath : "./sidebars.js" ,
48- editUrl : "https://github.com/ut-code/utcode-learn/blob/master /" ,
48+ editUrl : "https://github.com/ut-code/utcode-learn/blob/main /" ,
4949 remarkPlugins : [ math ] ,
5050 rehypePlugins : [ katex ] ,
5151 } ,
You can’t perform that action at this time.
0 commit comments