R
Railway12mo 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
Percy12mo ago
Project ID: N/A
Boomool
BoomoolOP12mo ago
N/A
Solution
Brody
Brody12mo 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
BoomoolOP12mo ago
thanks but same error, this is what Ive done:
No description
Brody
Brody12mo ago
it did work for me in postman, maybe try logging the response body
Boomool
BoomoolOP12mo 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
BoomoolOP12mo 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