Unplanned
Last Updated: 06 Feb 2020 14:05 by ADMIN
Ekaterina
Created on: 28 Nov 2019 16:56
Type: Feature Request
2
Could you please add graphQl in Fiddler? Thx

Greetings!

For now very popular technology in rest is graphQL

We use it in our project

Could you please add graphQl in Fiddler?

Thx

6 comments
ADMIN
Simeon
Posted on: 06 Feb 2020 14:05

Hello,

If you would like, you could request this feature in our feedback portal. This way more users will be able to vote for it.

Regards,
Simeon
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Eric
Posted on: 31 Jan 2020 16:15

Tip: Rather than "System.Text.Encoding.Default.GetString(request)", use oS.GetRequestBodyAsString() .

public static BindUIColumn("GraphQL Operation", 61)
function BindGQLSessionId(oS: Session): String {
if (os.HTTPMethodIs("POST") && oS.url.Contains("/graphql")) {
   return oS.GetRequestBodyAsString.Split(",")[0].Split(":")[1].Trim('"')
}

return String.Empty;

}

Micah
Posted on: 30 Jan 2020 18:21
Here's a hack I wrote that you can put in your fiddlerscript:

public static BindUIColumn("GraphQL Operation", 61)
function BindSessionId(oS: Session): String {
if (oS.url.Contains("/graphql"))

{
var request = oS.RequestBody

return System.Text.Encoding.Default.GetString(request).Split(",")[0].Split(":")[1].Trim('"')
}
else
{
return ""
}
}

This only works for my particular instance where the url and content is predictable, but it could be adapted by anyone who wants.
Micah
Posted on: 22 Jan 2020 23:23
It could also be nice to be able to display the operationName value in the list view so you could easily find particular calls without having to inspect each one.
Micah
Posted on: 22 Jan 2020 23:22

I believe Ekaterina is referencing the ability to view the body payload properly. For example, the raw body of this request is: 

{"operationName":"GetCurrentUserTenantMember","variables":{},"query":"query GetCurrentUserTenantMember {\n  me {\n    ...TenantMember\n    tenant {\n      ...Tenant\n      __typename\n    }\n    __typename\n  }\n}\n\nfragment TenantMember on TenantMember {\n  id\n  firstName\n  lastName\n  emailAddress\n  lastSeenOn\n  role\n  __typename\n}\n\nfragment Tenant on Tenant {\n  id\n  displayName\n  __typename\n}\n"}

Which you can view in the JSON inspector, but it isn't the best because the query is not displayed "properly"... 

 

Hope this is what they're looking for, because it would be nice to have for me.

Eric
Posted on: 03 Dec 2019 18:59
Can you elaborate on what specifically you mean here? Are you trying to see traffic generated by GraphQL in your browser? Something else? Are you trying to generate traffic using GraphQL inside Fiddler?