-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to test graphql api in fastify #664
Comments
@RafaelGSS Thanks for the link. I'm able to test graphql api using
Do you have any idea what I'm missing here? |
inject() does not follow redirects, so you'll have to follow that manually. |
@mcollina Can you give me a small use case of that? |
Unfortunately I can't. Your use case is really specific to your application. Unfortunately I do not have time atm to reconstruct it. |
@mcollina OK does |
@raviSussol fastify.inject doesn't follow redirects. In order to do that manually you will need to detect that a response is a redirect (301/302 status code) and then manually request the url contained in the Location response header. |
@fastify/core unless you intend to implement support for redirects in .inject, this issue can be closed. |
馃挰 Question here
How to test graphql api in fastify app? There are lots of example for the rest api to test in fastify app but for the graphql based app how can I test using testing method like
fastify.inject
? An online guide for testing in fastify here doesn't contain for graphql api test. Any examples if anybody can share would really be appreciated. 馃檹// No idea. Looking for demo code to test graphql api
If possible add a link to sample codes for error reproduction (github or replit)
Your Environment
The text was updated successfully, but these errors were encountered: