Settings for GraphQL

This topic describes how to set up an GraphQL connection for DataSync.

To configure a new connection:

  1. In DataSync, create a new source connection for GraphQL.

  2. Fill out the fields in the Connection Properties panel as well as the fields described below.

  3. Click Save.

Connection Properties Description
Description Enter a name for the source connection.
URL
  • This property defines at which URL the API resides.

  • Must represent the GraphQL endpoint maybe different from the base server address.

    • Value is validated.

Authentication Mode
Username

The user that will be used to authenticate. It is only available for Basic mode.

Password The password of the user that will be used to authenticate. It is only available for Basic mode.
Callback URL
  • URL we return to after authenticating.

  • A value will be automatically assigned.

    • Some API will require this to be added to the set of known callback URLs.

    • Check with your application settings or your configuration portal.

Client ID
  • An identifier assigned to the application after the registration process.

  • This value should be found with your application settings or configuration portal.

Client Secret
  • An identifier only known to the user and the authorization server.

  • This value should be found with application settings or configuration portal.

Authorization URL
  • The starting address for the authorization phase

  • This value should be found in the API documentation.

Access Token URL
  • The URL used in exchanging an authorization code for an access token.

  • The value should be found in the API documentation.

Refresh Token URL
  • The URL using in exchanging a refresh to token for an access token.

  • The value should be found in the API documentation.

Scope
  • Defines the access right the user request during connection.

  • Verify with you configuration portal for access right configured for you application.

   

 

Additional Connection Properties Description
HTTP Headers

For some API, Custom HTTP headers need to be include as part of API request.

  • Click on "Add Property" button, add Http Headers.

  • Add a line for every customer header that needs to be included.

ExpandTablesDepth
  • Controls for how many levels of nested lists we want to include in the discovery.

  • Use Case :
    • An object definition contains a list of objects and we want the nested list to be include
    • We don’t require the inner list object to be expanded to a table.
      • Set this value to zero.
      • We require that a list object be expanded to a table and the list exists in the same object definition.
        • Set this value to 1 should this list doesn’t have any list object nested.
        • Increase the value to match with the level of nesting in the table definition.