graphql-rust / juniper

GraphQL server library for Rust
Other
5.72k stars 425 forks source link

Expose inner value of GraphQLResponse. #1293

Open RyogaK opened 1 week ago

RyogaK commented 1 week ago

In my use case, I need to parse the GraphQLResponse from Juniper’s response and record it as structured logs. While GraphQLRequest has a public (pub) internal structure, but the internals of GraphQLResponse are not accessible, so currently, I have to serialize it once and then re-parse it as a string. This intermediary processing is cumbersome, and I would like to directly access the internal data of GraphQLResponse.