> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sync.cdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GraphQL

CData Sync アプリケーションからGraphQL コネクタを使用して、GraphQL からデータを取得してサポートされている任意の同期先に移動できます。これを行うには、コネクタを追加し、コネクタへの認証を行い、接続を完了する必要があります。

## GraphQL コネクタを追加

Sync でGraphQL のデータを使用できるようにするには、まず以下の手順でコネクタを追加する必要があります：

<ol>
  <li>Sync のダッシュボードから**接続**ページを開きます。</li>
  <li>**接続を追加**をクリックして**コネクタを選択**ページを開きます。</li>
  <li>**データソース**タブをクリックして
  **GraphQL** 行に移動します。</li>

  <li>
    行末にある**接続を設定**アイコンをクリックして、**新しい接続**ページを開きます。この操作により、
    **接続を追加**ダイアログボックスが開きます。

    **Note：** **接続を設定**アイコンが表示されない場合は、**コネクタをダウンロード**アイコンをクリックして GraphQL コネクタをインストールしてください。
  </li>

  <li>**接続を追加**ダイアログボックスに接続名を入力します。</li>
  <li>**追加**をクリックして、コネクタの**設定**タブを開きます。</li>
</ol>

新しいコネクタのインストールについての詳細は、
[接続](https://docs.sync.cdata.com/26.4/ja/connections/connections.md)を参照してください。

## GraphQL への認証

After you add the connector, you need to set the required properties.

**URL:** Enter the URL for your GraphQL service.

CData Sync supports authenticating to GraphQL in several ways. Select your authentication method below to proceed to the relevant section that contains the authentication details.

* [**None**](#none)
* [**Basic**](#basic)
* [**OAuth**](#oauth) (default)
* [**OAuth PKCE**](#oauth-pkce)
* [**Aws Cognito Secure Remote Password**](#aws-cognito-secure-remote-password)
* [**Aws Cognito Basic**](#aws-cognito-basic)

### None

認証なしで接続するには、**Auth Scheme** で**None** を選択します。追加のプロパティは必要ありません。

### Basic

ユーザー資格情報で接続するには、次のプロパティを設定します：

<ul><li>\*\*Auth Scheme：\*\***Basic** を選択。</li>
<li>\*\*User：\*\*GraphQL アカウントへの認証に使用するユーザー名を入力。</li>
<li>\*\*Password：\*\*GraphQL アカウントへの認証に使用するパスワードを入力。</li></ul>

### OAuth

To connect with OAuth custom credentials, specify the following properties:

* **Auth Scheme:** Select **OAuth**.
* **OAuth Version:** Select the OAuth version that you want to use. The versions are **Disabled** (default), **1.0**, and **2.0**.
* **OAuth Client Id:** Enter the client Id that you were assigned when you registered your application with an OAuth authorization server.
* **OAuth Client Secret:** Enter the client secret that you were assigned when you registered your application with an OAuth authorization server.
* **OAuth Authorization URL:** Enter the OAuth authorization URL that you need to authorize request tokens when you sign in.
* **OAuth Access Token URL:** Enter the URL from which the request for the access token is made.
* **OAuth Refresh Token URL:**  Enter the URL from which the refresh token is exchanged for a new access token when the old one expires. Note that for your data source, this URL might be the same as the access-token URL.
* (Optional) **OAuth Request Token URL:** Enter the URL from which the application requests the request token.

### OAuth PKCE

To connect with the OAuth PKCE extension, set the following properties:

* **Auth Scheme:** Select **OAuthPKCE**.
* **OAuth Client Id:** Enter the client Id that you were assigned when you registered your application with an OAuth authorization server.
* **OAuth Authorization URL:** Enter the OAuth authorization URL that you need to authorize request tokens when you sign in.
* **OAuth Access Token URL:** Enter the URL where the request for the access token is made.
* **OAuth Refresh Token URL:** Enter the URL where the refresh token is exchanged for a new access token when the old one expires. Note that for your data source, this URL might be the same as the access-token URL.

### AWS Cognito Secure Remote Password

Amazon Web Services (AWS) Cognito 認証情報で接続するには、次のプロパティを指定します：

<ul><li>\*\*Auth Scheme：\*\***AwsCognitoSrp** を選択。</li>
<li>\*\*User：\*\*ユーザープールに登録されているユーザーのユーザー名を入力。</li>
<li>\*\*Password：\*\*ユーザープールに登録されているユーザーのパスワードを入力。</li>
<li>**AWS Cognito Region：**Amazon Web Services (AWS) Cognito のホスティングリージョンを選択。デフォルトのリージョンは**NORTHERNVIRGINIA** です。</li>
<li>\*\*AWS User Pool Id：\*\*AWS ユーザープールの識別子（Id）を入力。</li>
<li>\*\*AWS User Pool Client App Id：\*\*AWS ユーザープールのクライアントアプリケーションId を入力。</li>
<li>（オプション）\*\*AWS User Pool Client App Secret：\*\*ユーザープールクライアントのシークレットを入力。</li>
<li>**AWS Region：**Amazon Web Services のホスティングリージョンを選択。デフォルトのリージョンは**NORTHERNVIRGINIA** です。</li></ul>

### AWS Cognito Basic

Amazon Web Services (AWS) Cognito 認証情報で接続するには、次のプロパティを指定します：

<ul><li>\*\*Auth Scheme：\*\***AwsCognitoBasic** を選択。</li>
<li>\*\*User：\*\*ユーザープールに登録されているユーザーのユーザー名を入力。</li>
<li>\*\*Password：\*\*ユーザープールに登録されているユーザーのパスワードを入力。</li>
<li>**AWS Cognito Region：**Amazon Web Services (AWS) ユーザープールのリージョンを選択。デフォルトのリージョンは**NORTHERNVIRGINIA** です。</li>
<li>\*\*AWS User Pool Id：\*\*AWS ユーザープールの識別子（Id）を入力。</li>
<li>\*\*AWS User Pool Client App Id：\*\*AWS ユーザープールのクライアントアプリケーションId を入力。</li>
<li>（オプション）\*\*AWS User Pool Client App Secret：\*\*ユーザープールクライアントのシークレットを入力。</li></ul>

## 接続を完了する

To complete your connection:

1. Define advanced connection settings on the **Advanced** tab. (In most cases, though, you should not need these settings.)
2. If you authenticate with OAuth and OAuthPKCE, click **Connect to GraphQL** to connect to your GraphQL account.
3. Click **Create & Test** to create your connection.

## 詳細について


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.