R
Railway11mo ago
Boomool

Cannot make this query work to graphql api

Im doins something really stupid but I cannot figre whats wrong, keep getting a 400 error
No description
Solution:
use this as the query ```json query project($id: String!) { project(id: $id) { createdAt...
Jump to solution
7 Replies
Percy
Percy11mo ago
Project ID: N/A
Boomool
Boomool11mo ago
N/A
Solution
Brody
Brody11mo ago
use this as the query
query project($id: String!) {
project(id: $id) {
createdAt
description
id
isPublic
name
}
}
query project($id: String!) {
project(id: $id) {
createdAt
description
id
isPublic
name
}
}
and use this as the variables
{
"id": "<your id here>"
}
{
"id": "<your id here>"
}
Boomool
Boomool11mo ago
thanks but same error, this is what Ive done:
No description
Brody
Brody11mo ago
it did work for me in postman, maybe try logging the response body
Boomool
Boomool11mo ago
I believe its a TS problem cause it worked for me in graphiql. the response body is empty, just a 400 (Bad Req)
Boomool
Boomool11mo ago
FYI, that's not a solution to my problem. The original query was already working in postman
Want results from more Discord servers?
Add your server