How to print the raw request #162
Answered
by
budde377
baconcheese113
asked this question in
Q&A
-
When using fragments it can be time consuming to manually stitch together the query being sent for debugging purposes. Is there a way to print it? |
Beta Was this translation helpful? Give feedback.
Answered by
budde377
Aug 12, 2022
Replies: 2 comments 3 replies
-
Under the hood we're using |
Beta Was this translation helpful? Give feedback.
1 reply
-
I haven't tested this, but I recon you can do something like import 'package:gql/language.dart';
main() {
print(printNode(yourDocumentNodeGeneratedByGraphqlCodegen));
}
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
budde377
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I haven't tested this, but I recon you can do something like