Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit adeced6

Browse files
author
BSKY
authored
Merge pull request #99 from toshi1127/translate-docs/glossary/graphql
translate docs/glossary/graphql
2 parents 4354d38 + 8f41a2f commit adeced6

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

docs/docs/glossary/graphql.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@ title: GraphQL
33
disableTableOfContents: true
44
---
55

6-
## What is GraphQL?
6+
## GraphQL とは?
77

8-
GraphQL is a query language for requesting information from an [API](/docs/glossary#api), and a protocol for servers that support it. GraphQL is one of the ways that you can import data into your Gatsby components.
8+
GraphQL は、[API](/docs/glossary#api) から情報を要求するためのクエリ言語であり、それをサポートするサーバーのプロトコルです。GraphQL は、Gatsby コンポーネントにデータを取り込むことのできる方法の 1 つです。
99

10-
Facebook created GraphQL in 2012 when it realized that it needed an API capable of supporting both web-based and native mobile applications. Facebook released GraphQL with an open source license in 2015.
10+
Facebook は、Web アプリケーションとネイティブアプリケーションの両方をサポートできる API が必要であることに気づき、2012 年に GraphQL を作成しました。Facebook は、2015 年にオープンソースライセンスとして GraphQL をリリースしました。
1111

12-
More traditional APIs use a separate endpoint for each piece or type of data you'd like to request. For example, a newspaper API might contain:
12+
従来の API では、リクエストするデータごとに個別のエンドポイントを使用します。たとえば、新聞の API には次のものが含まれます。
1313

14-
- an `/articles/<id>` endpoint that returns a specific news story;
15-
- a `/reporters/<id>` endpoint that returns information about a particular reporter.
14+
- 特定のニュース記事を返す `/articles/<id>` エンドポイント。
15+
- 特定のレポーターに関する情報を返す `/reporters/<id>` エンドポイント。
1616

17-
A single news article page might require two separate network requests: one to retrieve the story data, and another for the reporter's contact details. What's more, the `/reporters` endpoint may return more data than you want to display; it might return their biography and social media accounts, when their name, email, and photo are all that you need for the page.
17+
1 つのニュース記事ページには、2 つのリクエストが必要になる場合があります。さらに、 `/reporters` エンドポイントは、表示するよりも多くのデータを返す場合があります。名前、メール、写真がページに必要な時、経歴やソーシャルメディアアカウントが余分に返される場合があります。
1818

19-
A GraphQL API, on the other hand, has a single endpoint. To retrieve data, you send one request string that uses a GraphQL-specific syntax. GraphQL executes the functions necessary to retrieve the data that you've requested, and returns a single JSON response.
19+
一方、GraphQL API は単一のエンドポイントを持ちます。データを取得するには、GraphQL 固有の構文を用いて 1 つのリクエストを送信します。GraphQL は、要求したデータを取得するために必要な関数を実行し、単一の JSON 応答を返します。
2020

21-
A request for an article and its reporter might look like the example that follows.
21+
特定の記事とレポーターを取得するためのリクエストは、次の例のようになります。
2222

2323
```graphql
2424
{
@@ -34,7 +34,7 @@ A request for an article and its reporter might look like the example that follo
3434
}
3535
```
3636

37-
And its response contains only what you've requested.
37+
そして、そのレスポンスには、リクエストしたプロパティのみが含まれます。
3838

3939
```json
4040
{
@@ -52,18 +52,18 @@ And its response contains only what you've requested.
5252
}
5353
```
5454

55-
You do not have to use GraphQL with Gatsby, however GraphQL offers a few advantages over other methods of importing data.
55+
Gatsby で GraphQL を使用する必要はありませんが、GraphQL には他のデータ取得方法に比べていくつかの利点があります。
5656

57-
- You can retrieve only the data that you need for a view.
58-
- You can add new data types and capabilities without needing to create a new endpoint.
59-
- You can store content in whatever way makes sense for your site, whether that's in a database, a third-party headless CMS, or Markdown-formatted text files.
57+
- ページの表示に必要なデータのみを取得できます。
58+
- 新しいエンドポイントを作成することなく、新しいデータ型と機能を追加できます。
59+
- データベース、サードパーティのヘッドレス CMSMarkdown 形式のテキストファイルなど、サイトにとって適切な方法でコンテンツを保存できます。
6060

61-
## Learn more
61+
## さらに学ぶ
6262

6363
- [GraphQL & Gatsby](/docs/graphql/)
6464

65-
- [Why Gatsby Uses GraphQL](/docs/why-gatsby-uses-graphql/)
65+
- [Gatsby GraphQL を使用する理由](/docs/why-gatsby-uses-graphql/)
6666

67-
- [GraphQL](https://graphql.org) official site
67+
- [GraphQL](https://graphql.org) 公式サイト
6868

69-
- [How to GraphQL](https://www.howtographql.com/)
69+
- [GraphQL の使い方](https://www.howtographql.com/)

0 commit comments

Comments
 (0)