Skip to content

Commit 6eebffd

Browse files
docs: wrd graphqldatasource wizard (#1717)
* docs: wrd graphqldatasource wizard * Update graphqldatasource-wizard.md * Update graphqldatasource-wizard.md --------- Co-authored-by: Todor Arabadzhiev <todor.arabadzhiev@progress.com>
1 parent 6e2f6fa commit 6eebffd

File tree

12 files changed

+136
-12
lines changed

12 files changed

+136
-12
lines changed

designing-reports/connecting-to-data/data-source-components/graphqldatasource-component/overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ table th:nth-of-type(2) {
1919

2020
The data source is introduced in [2025 Q1 (19.0.25.211)](https://www.telerik.com/support/whats-new/reporting/release-history/progress-telerik-reporting-2025-q1-19-0-25-211).
2121

22-
The [GraphQLDataSource](/api/Telerik.Reporting.GraphQLDataSource) component enables data items to retrieve data in JSON format from a GraphQL service. At design time, the component can be configured using the [GraphQLDataSource Wizard]({%slug desktop-graphqldatasource-wizard%}) in the [Standalone]({% slug telerikreporting/designing-reports/report-designer-tools/desktop-designers/standalone-report-designer/overview %}) and the [Visual Studio Report Designer]({% slug telerikreporting/designing-reports/report-designer-tools/desktop-designers/visual-studio-report-designer/overview %}). As of now, the [Web Report Designer]({% slug telerikreporting/designing-reports/report-designer-tools/web-report-designer/overview %}) does not feature a wizard, but the data source can be configured through the [Properties Area]({% slug telerikreporting/designing-reports/report-designer-tools/web-report-designer/overview %}#web-report-designer-elements). At run time, the GraphQLDataSource component automatically issues the GraphQL request, applies authentication tokens if needed, and retrieves the data.
22+
The [GraphQLDataSource](/api/Telerik.Reporting.GraphQLDataSource) component enables data items to retrieve data in JSON format from a GraphQL service. At design time, the component can be configured using the [GraphQLDataSource Wizard]({%slug desktop-graphqldatasource-wizard%}). At run time, the GraphQLDataSource component automatically issues the GraphQL request, applies authentication tokens if needed, and retrieves the data.
2323

2424
The data field names for this data source are __case-sensitive__. It is required to use the correct data field names in expressions, otherwise, no data will be shown.
2525

@@ -97,4 +97,4 @@ It is possible to leverage the 2-step Authentication mechanism above to retrieve
9797

9898
* [GraphQLDataSource Wizard]({%slug desktop-graphqldatasource-wizard%})
9999
* [Using JSONPath to Filter JSON data]({%slug graphqldatasource-filter-json-data%})
100-
* [Using Parameters with GraphQLDataSource]({%slug graphqldatasource-parameters%})
100+
* [Using Parameters with GraphQLDataSource]({%slug graphqldatasource-parameters%})

designing-reports/report-designer-tools/desktop-designers/tools/data-source-wizards/graphqldatasource-wizard.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,33 +21,37 @@ table th:nth-of-type(2) {
2121

2222
The __GraphQL Data Source Wizard__ allows you to create new or edit existing __GraphQLDataSource__ components based on several settings. After the wizard appears, you have to perform the following steps:
2323

24-
1. __Configure data retrieval__: Setup the properties of the HTTP request which will retrieve data from the GraphQL service:
24+
1. __Configure data retrieval__: Setup the properties of the HTTP request that will retrieve data from the GraphQL service:
2525

2626
!["Use GraphQL Request" tab of the "Configure data retrieval" window of the GraphQLDataSource Wizard. Includes the configurable options "GraphQL Service URL", "Authentication Type", and "Encoding".](images/DataSources/graphql/data-retrieval-graphql-request.png)
2727

2828
| Setting | Description |
2929
| ------ | ------ |
3030
|Service URL|The URL the request is sent to. Returns the data from the GraphQL service. Required.|
3131
|Authentication Type|The authentication type. The supported options are Basic and 2-step authentications.|
32-
|Encoding|Data encoding. Default is UTF-8.|
32+
|Encoding|Data encoding. The default is UTF-8.|
3333

3434
And/or enter data inline:
3535

3636
!["Use Inline Data String" tab of the "Configure data retrieval" window of the GraphQLDataSource Wizard. Includes a text area to configure the inline string containing the data.](images/DataSources/graphql/data-retrieval-inline-data-string.png)
3737

3838
| Setting | Description |
3939
| ------ | ------ |
40-
|Source|The inline data string containing the data. Required if Service URL or external data file is not set.|
40+
|Source|The inline data string containing the data. Required if the Service URL or external data file is not set.|
4141

4242
And/or reference an external data file:
4343

4444
!["Use External Data File" tab of the "Configure data retrieval" window of the GraphQLDataSource Wizard. Allows to select a path for the file and configure whether the path is absolute or relative.](images/DataSources/graphql/data-retrieval-external-data-file.png)
4545

4646
| Setting | Description |
4747
| ------ | ------ |
48-
|Source|The external data file containing the data. The URI to the file might be relative or absolute. Required if Service URL or inline data string is not set.|
48+
|Source|The external data file containing the data. The URI to the file might be relative or absolute. Required if the Service URL or inline data string is not set.|
4949

50-
1. __Configure request parameters__: The parameters of the HTTP request to be applied. The supported types are Query, Header, Cookie, and Inline. The inline parameters are parameters that are used to replace parameter tokens (@param1) in the URL and the GraphQL Query fields with an expression result or static value. For more information about the different types of parameters, refer to [Using Parameters in the GraphQLDataSource]({% slug graphqldatasource-parameters %}).
50+
1. __Configure GraphQL Query__: Allows you to define the actual GraphQL query that will be sent to the service. You can write a static query or use inline parameters to dynamically inject values into the query string.
51+
52+
!["Configure GraphQL Query" window of the GraphQLDataSource Wizard. Includes a pre-configured query that utilizes inline parameters.](images/DataSources/graphql/configure-graphql-query.png)
53+
54+
1. __Configure request parameters__: The parameters of the HTTP request to be applied. The supported types are Query, Header, Cookie, and Inline. The inline parameters are parameters that are used to replace parameter tokens (@param1) in the URL and the GraphQL Query fields with an expression result or static value. For more information about the different types of parameters, refer to [Using Parameters in the GraphQLDataSource]({%slug graphqldatasource-parameters%}).
5155

5256
!["Configure request parameters" window of the GraphQLDataSource Wizard. Includes 5 pre-configured parameters: a header parameter for the HTTP header "Authorization" and four inline parameters, named "data", "status", "name", and "endpoint".](images/DataSources/graphql/configure-request-parameters.png)
5357

@@ -75,19 +79,19 @@ The __GraphQL Data Source Wizard__ allows you to create new or edit existing __G
7579
|Logout Body|The body of the logout HTTP request.|
7680

7781

78-
1. __2-Step Authentication Parameters__: The parameters of the HTTP request to be applied. The supported types are Query, Header, Cookie and Inline. The inline parameters are parameters that are used to replace parameter tokens (@param1) in the URL and the Body fields with an expression result or static value.
82+
1. __2-Step Authentication Parameters__: The parameters of the HTTP request to be applied. The supported types are Query, Header, Cookie, and Inline. The inline parameters are parameters that are used to replace parameter tokens (@param1) in the URL and the Body fields with an expression result or static value.
7983

8084
1. __Preview data source results__: Allows you to preview the result from the configurations you have applied so far.
8185

82-
!["Preview data source results" window of the GraphQLDataSource Wizard. On the left, there is a "Download" button, responsible for displaying the data. On the right, there is a text box allowing to configure the JSONPath data selector to further filter the result.](images/DataSources/graphql/preview-data-source-results.png)
86+
!["Preview data source results" window of the GraphQLDataSource Wizard. On the left, there is a "Download" button, responsible for displaying the data. On the right, there is a text box allowing you to configure the JSONPath data selector to further filter the result.](images/DataSources/graphql/preview-data-source-results.png)
8387

8488
| Setting | Description |
8589
| ------ | ------ |
86-
|Data Selector|The [JSONPath](https://www.newtonsoft.com/json/help/html/QueryJsonSelectTokenJsonPath.htm) expression string which will be used to query the data. For more information, refer to [How to Use JSONPath to filter JSON data]({%slug graphqldatasource-filter-json-data%}).|
90+
|Data Selector|The [JSONPath](https://www.newtonsoft.com/json/help/html/QueryJsonSelectTokenJsonPath.htm) expression string, which will be used to query the data. For more information, refer to [How to Use JSONPath to filter JSON data]({%slug graphqldatasource-filter-json-data%}).|
8791

8892

8993
## See Also
9094

9195
* [GraphQLDataSource Component Overview]({%slug graphqldatasource%})
9296
* [Using JSONPath to Filter JSON data]({%slug graphqldatasource-filter-json-data%})
93-
* [Using Parameters with GraphQLDataSource]({%slug graphqldatasource-parameters%})
97+
* [Using Parameters with GraphQLDataSource]({%slug graphqldatasource-parameters%})
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
---
2+
title: GraphQLDataSource Wizard
3+
page_title: GraphQLDataSource Wizard Tutorial
4+
description: "Learn how to connect your GraphQL endpoints to Telerik reports through the Web Report Designer's dedicated wizard."
5+
slug: telerikreporting/designing-reports/report-designer-tools/web-report-designer/tools/graphqldatasource-wizard
6+
tags: graphqldatasource,wizard
7+
published: True
8+
position: 5
9+
---
10+
<style>
11+
table th:first-of-type {
12+
width: 25%;
13+
}
14+
table th:nth-of-type(2) {
15+
width: 75%;
16+
}
17+
</style>
18+
19+
# GraphQLDataSource Wizard Overview
20+
21+
The GraphQLDataSource Wizard allows you to create new or edit existing [GraphQLDataSource components]({%slug telerikreporting/designing-reports/connecting-to-data/data-source-components/graphqldatasource-component/overview%}) in the [Telerik Web Report Designer]({%slug telerikreporting/designing-reports/report-designer-tools/web-report-designer/overview%}).
22+
23+
## Wizard Flow Summary
24+
25+
| Authentication Type | Steps Displayed |
26+
|---------------------|-----------------|
27+
| None | Data Retrieval → GraphQL Query → Request Parameters → Design-Time Data → Preview |
28+
| Basic | + Basic Authentication |
29+
| 2-Step | + 2-Step Authentication + 2-Step Auth Parameters |
30+
31+
### Configure Data Retrieval: Part 1
32+
33+
Configure the HTTP request properties used to retrieve data from the GraphQL service.
34+
35+
!["Configure Data Retrieval" window of the GraphQLDataSource Wizard. Includes the configurable options "GraphQL Service URL", "Authentication Type", and "Response Encoding".](images/graphqldatasource/configure-data-retrieval-endpoint.png)
36+
37+
| Setting | Description |
38+
| ------ | ------ |
39+
|Service URL|The URL the request is sent to. Returns the data from the GraphQL service.|
40+
|Authentication Type|The authentication type. Supported options are Basic and 2-Step authentication.|
41+
|Response Encoding|Data encoding. The default is UTF-8.|
42+
43+
### Configure Data Retrieval: Part 2
44+
45+
Define the GraphQL query to be sent to the service. You can write a static query or use inline parameters to inject values dynamically.
46+
47+
!["Configure Data Retrieval" window of the GraphQLDataSource Wizard. Includes a text area for the GraphQL query.](images/graphqldatasource/configure-data-retrieval-query.png)
48+
49+
### Configure Request Parameters
50+
51+
Define parameters for the HTTP request. The supported types are Query, Header, Cookie, and Inline. The inline parameters are parameters that are used to replace parameter tokens (@param1) in the URL and the GraphQL Query fields with an expression result or static value. For more information about the different types of parameters, refer to [Using Parameters in the GraphQLDataSource]({%slug graphqldatasource-parameters%}).
52+
53+
!["Configure request parameters" window of the GraphQLDataSource Wizard. Includes 5 pre-configured parameters: a header parameter for the HTTP header "Authorization" and three inline parameters, named "data", "status", and "name".](images/graphqldatasource/configure-request-parameters.png)
54+
55+
### Configure Basic Authentication (Optional)
56+
57+
> This step is skipped unless you choose `Basic` authentication in the first step of the wizard.
58+
59+
Enter the credentials for basic authentication.
60+
61+
!["Configure Basic Authentication" window of the GraphQLDataSource Wizard. Includes two text boxes for the user name and the password.](images/graphqldatasource/configure-basic-authentication.png)
62+
63+
| Setting | Description |
64+
| ------ | ------ |
65+
|Username|The username used to authenticate. Required.|
66+
|Password|The password used to authenticate.|
67+
68+
### Configure 2-Step Authentication (Optional)
69+
70+
>note This step is skipped unless you choose `2-Step` authentication in the first step of the wizard.
71+
72+
Set up the settings for the 2-step (Bearer) authentication.
73+
74+
!["Configure 2-step authentication" window of the GraphQLDataSource Wizard. Includes text boxes for "Login URL", "Login Body", "Username", "Password", "Token Path", "Logout URL", and "Logout Body".](images/graphqldatasource/configure-2-step-authentication.png)
75+
76+
| Setting | Description |
77+
| ------ | ------ |
78+
|Login URL|Returns the authentication token or session key. Required.|
79+
|Login Body|The body of the login HTTP request.|
80+
|Username|The username used to authenticate. Needed only if the Login URL uses Basic Authentication.|
81+
|Password|The password used to authenticate.|
82+
|Token Path|A regular expression to retrieve the authentication or session key from the response.|
83+
|Logout URL|Called if the resource features a lockout for too many sessions.|
84+
|Logout Body|The body of the logout HTTP request.|
85+
86+
### Configure Authentication Parameters (Optional)
87+
88+
>note This step is skipped unless you choose `2-Step` authentication in the first step of the wizard.
89+
90+
Specify parameters for the authentication HTTP request. The supported types are Query, Header, Cookie, and Inline, like in the [Configure Request Parameters step](#configure-request-parameters).
91+
92+
!["Configure authentication parameters" window of the GraphQLDataSource Wizard. Features a grid showcasing the current parameters, as well as a "plus" icon for adding new ones.](images/graphqldatasource/configure-2-step-authentication.png)
93+
94+
### Choose Design-Time Data
95+
96+
Choose the source of design-time data (used, for example, to display available data source fields in the [Edit Expression dialog]({%slug telerikreporting/designing-reports/report-designer-tools/desktop-designers/tools/edit-expression-dialog%})). The available options are:
97+
98+
* **Use real data while designing the report** – HTTP requests are sent to the GraphQL service during design time to retrieve the data.
99+
* **Upload JSON file** – Use an external JSON file for the data. The URI can be relative or absolute.
100+
* **Use JSON inline as hard-coded data while designing the report** - Use a hard-coded JSON string.
101+
102+
!["Choose design-time data" window of the GraphQLDataSource Wizard. Includes three buttons with the options "Use real data while designing the report", "Upload JSON file", and "Use JSON inline as hard-coded data while designing the report". The default one is "Use real data while designing the report".](images/graphqldatasource/choose-design-time-data.png)
103+
104+
>tip Use an external JSON file or hard-coded data if the GraphQLDataSource component relies on a token that needs to be updated dynamically through report parameters. Report parameters can be used only at runtime.
105+
106+
### Preview Data Source Results
107+
108+
Preview the data returned based on the current configuration. Optionally, specify a JSONPath expression to filter the result.
109+
110+
!["Preview data source results" window of the GraphQLDataSource Wizard. On the left, there is a "Preview" button, responsible for displaying the data, along with the GraphQL query configured in step 2 of the wizard. On the right, there is a text box allowing to configure the JSONPath data selector to further filter the result. Below is the JSON result from the GraphQL query.](images/graphqldatasource/preview-data-source-results.png)
111+
112+
| Setting | Description |
113+
| ------ | ------ |
114+
|Data Selector|The [JSONPath](https://www.newtonsoft.com/json/help/html/QueryJsonSelectTokenJsonPath.htm) expression string used to query the data. For more information, refer to [How to Use JSONPath to filter JSON data]({%slug telerikreporting/designing-reports/connecting-to-data/data-source-components/graphqldatasource-component/how-to-use-jsonpath-to-filter-json-data%}).|
115+
116+
## See Also
117+
118+
* [GraphQLDataSource Component Overview]({%slug graphqldatasource%})
119+
* [Using JSONPath to Filter JSON data]({%slug graphqldatasource-filter-json-data%})
120+
* [Using Parameters with GraphQLDataSource]({%slug graphqldatasource-parameters%})
54.2 KB
Loading
54.5 KB
Loading
43.6 KB
Loading
36.6 KB
Loading
38 KB
Loading
52.8 KB
Loading
67.5 KB
Loading

0 commit comments

Comments
 (0)