Unplanned
Last Updated: 13 Nov 2024 11:48 by ADMIN
admin
Created on: 06 Nov 2024 18:41
Type: Feature Request
0
Add an easy way to wire up GraphQL as a data source

I have been forcing my webservice data source into a workable solution for making GraphQL requests. Right now in order for us to use GraphQL, we have to build out the request manually with a string such as the following:


{"query: "query GetSomeResult($input: Int!) {result {id name}}",
"variables": "{"input": @parameter}"
}

While this is a normal way to hand craft a GraphQL request, the issue I have is that it shouldn't need to be that hard. Also I get no intellisense or suggestion in regards to the data returning. This means that when I try to bind data to a text box, I have to visually validate that the [=Fields....] is actually correct by looking at the GraphQL query and at the code base. I would love to see the ability to to just say have a set of standard api technologies we could implement from such as GraphQL queries, GRPc queries, or any other contract style request. I would expect that the data source logic would be smart enough to parse the query (at least for GQL) and be able to provide reccomendations.

 

Also a major issue we have had is in being able to pass that data source to subReports, or dealing with any nested objects such as a user.address.addressLine1 would not be able to be found if address is a nested values like the following


user: {
  address: {
    addressLine1
  }
}

1 comment
ADMIN
Todor
Posted on: 13 Nov 2024 11:48

Hello,

Thank you for the detailed description of the requirements and the value they will bring to the product. I agree that a GraphQL DataSource component will be beneficial for many Telerik Reporting users. We have already discussed this feature within the team and it is in our plans for future releases.

Note that starting with R3 2022 SP1 (16.2.22.1109) the SubReport exposes a DataSource property that may be set from the main report definition - The property DataSource of the SubReport item.

Regarding the nested properties, provided they are not collections, they may be seen in the Data Explorer and Edit Expression Dialog of the Report Designer and used like Fields in the report definition:

Regards,


Todor
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.