FoalTS / foal

Full-featured Node.js framework, with no complexity. 🚀 Simple and easy to use, TypeScript-based and well-documented.
https://foalts.org/
MIT License
1.88k stars 137 forks source link

Graphql : response not work #1063

Closed bobwatcherx closed 2 years ago

bobwatcherx commented 2 years ago

i follow you web tutorial https://foalts.org/docs/1.x/api-section/graphql/

tolol

i using query hello based from you web tutorial but response like that

LoicPoullain commented 2 years ago

Hi 👋

It looks like you're looking at an older version of FoalTS. Does it work with version 2? https://foalts.org/docs/api-section/graphql.

If not, could you share the content of the HTTP request that is made (headers, body)? What is also the software that you're using?

Thanks!

bobwatcherx commented 2 years ago

kazam now it's working , but i want to add request header in context

and graphiql I see there is no feature to add header

the selection of children changes graphiql to graphql-playground

LoicPoullain commented 2 years ago

Okay, so from what I understand, sending a GraphQL query from GraphiQL works but it fails from graphql-playground. And you'd like to send it from graphql-playground to be able to add a header to the HTTP request. Is that correct?

If so, could you create and share a repository that highlights the problem / bug? It will really help me investigate and debug the issue. 👍

bobwatcherx commented 2 years ago

Okay, so from what I understand, sending a GraphQL query from GraphiQL works but it fails from graphql-playground. And you'd like to send it from graphql-playground to be able to add a header to the HTTP request. Is that correct?

If so, could you create and share a repository that highlights the problem / bug? It will really help me investigate and debug the issue. 👍

Thank you for the help . I'm just asking if foalts has graphql-playground not graphiql ? if you don't have it but that's okay. I think graphiql is enough. Thank you :)