Graphql datasource parameter does not works

Stimulsoft Reports.WEB discussion
ShakeebAhmed
Posts: 23
Joined: Wed Nov 12, 2014 2:22 pm

Graphql datasource parameter does not works

Post by ShakeebAhmed »

Hello,

We are using version 2025.4.3 for our initial setup to make sure we got everything what we need. although, things are looking great apart from one parameterized report that we want using graphql datasource query parameter. Please find below details for the same.

Stimulsoft.Data.GraphQL - 2025.4.3 also installed.

DataSource Query sample :
query ($status: String) {
dashboardClaimKanban(
where: { status: { eq: $status } }
) {
items {
id
status
}
}
}

Variable :
Name : status
Alias: status
Type: String
Allow User Value : True

When Do Preview report, it loads fine with Parameter on top as free textbox and submit button. But there is no data loaded in report after changing the value and submitting it multiple times with different values, where as the same query did works in my graphql explorer with the value set to variable status.

Do you know how to trace this issue?
Lech Kulikowski
Posts: 7595
Joined: Tue Mar 20, 2018 5:34 am

Re: Graphql datasource parameter does not works

Post by Lech Kulikowski »

Hello,

We need some additional time to investigate the issue, we will let you know about the result as soon as possible.

Thank yuo.
#18890
ShakeebAhmed
Posts: 23
Joined: Wed Nov 12, 2014 2:22 pm

Re: Graphql datasource parameter does not works

Post by ShakeebAhmed »

@lech - Will wait until your response. Thanks for your quick response.
Lech Kulikowski
Posts: 7595
Joined: Tue Mar 20, 2018 5:34 am

Re: Graphql datasource parameter does not works

Post by Lech Kulikowski »

Hello,

You are welcome.
ShakeebAhmed
Posts: 23
Joined: Wed Nov 12, 2014 2:22 pm

Re: Graphql datasource parameter does not works

Post by ShakeebAhmed »

Hi @Lech, Any updates on this?
Lech Kulikowski
Posts: 7595
Joined: Tue Mar 20, 2018 5:34 am

Re: Graphql datasource parameter does not works

Post by Lech Kulikowski »

Hello,

You can use variables instead of parameters.

Thank you.
Attachments
519994549-c5557d9f-447c-4e8a-adcc-70a58aec220c.png
519994549-c5557d9f-447c-4e8a-adcc-70a58aec220c.png (56.09 KiB) Viewed 1060 times
ShakeebAhmed
Posts: 23
Joined: Wed Nov 12, 2014 2:22 pm

Re: Graphql datasource parameter does not works

Post by ShakeebAhmed »

@Lech, We are using Variables only. The way you used it in attached image we are having same setup but still it didn't works for us. Did it works in your side? If yes, then What version of stimulsoft package are you using?
Lech Kulikowski
Posts: 7595
Joined: Tue Mar 20, 2018 5:34 am

Re: Graphql datasource parameter does not works

Post by Lech Kulikowski »

Hello,

Could you send us a sample that reproduces the issue for analysis?

Thank you.
ShakeebAhmed
Posts: 23
Joined: Wed Nov 12, 2014 2:22 pm

Re: Graphql datasource parameter does not works

Post by ShakeebAhmed »

Please find below details for the attached project file. As I am using same solution that has there in demo page.

https://sanedhealth-my.sharepoint.com/: ... JhXq_pNqdA

Project Name - Web Demo
Report Name - Sample List (under Basic Reports section)
DataSource - GraphQL DEMO
Variable - status (default value - available)

Note: For each status ('errored','available') of what we are getting the data from our API (sample) which you can also try to use in report to see the data are not getting in if you have parameter but if you remove parameter from query and use hardcoded status in "where" block then you will notice data were being loaded fine.

Let me know if you need any further details to solve this issue.

Thanks,
Bhavesh
Lech Kulikowski
Posts: 7595
Joined: Tue Mar 20, 2018 5:34 am

Re: Graphql datasource parameter does not works

Post by Lech Kulikowski »

Hello,

Thank you for the sample. We will investigate it.

Thank you.
Post Reply