FLEXTool / FLEX

An in-app debugging and exploration tool for iOS
Other
14.07k stars 1.7k forks source link

[Request]: Network History GraphQL allow to search easily #657

Open zabbasexpedia opened 1 year ago

zabbasexpedia commented 1 year ago

If you tried someday to search for a GraphQL query it will be not easy, to search for GraphQL in the search bar and then open request by request to find the wanted request this took a lot of time and this is too frustrating.

Want we can do is:

Screenshot 2023-03-02 at 1 31 47 PM
nuke-dash commented 1 year ago

I forked, to add an ugly "hack" to show the operationName of a GraphQL request. So this might be in some way usefull. https://github.com/nuke-dash/FLEX-with-graphql-support/commit/19f0a79d89c7cca6f4f29a0425b8c873443535af

zabbasexpedia commented 1 year ago

@nuke-dash thank you

I have done this locally but with another approach Was looking forward to supporting the search and other stuff but I can't find the time to do that

if ([[_primaryDescription lowercaseString] isEqualToString: @"graphql"]) { NSString *apolloOperationName = [self.request.allHTTPHeaderFields valueForKey: @"X-APOLLO-OPERATION-NAME"]; _primaryDescription = [_primaryDescription stringByAppendingFormat: @" - %@", apolloOperationName]; }