Back

[SOLVED] 404 error when retrieving the graphql schema

  • 0
  • GraphQL
Faisal7
8 Apr, 2023, 18:36

I am trying to setup and access my appwrite graphql from Insomia i get 404 schema not found error in Insomia.

TL;DR
The user was experiencing a 404 error when retrieving the GraphQL schema. They were able to solve the issue by setting the project ID instead of the project name in the X-Appwrite-Project field. However, they are still getting an error. The solution provided is to disable the `_APP_OPTIONS_ABUSE` environment variables to enable the documentation. The user also asked about retrieving a specific field from the data in GraphQL. There is no solution provided for this question.
Drake
8 Apr, 2023, 18:37

Do you have some screenshot? Maybe you can share the exact error?

Faisal7
8 Apr, 2023, 19:06

Yes

Faisal7
8 Apr, 2023, 19:06
Faisal7
8 Apr, 2023, 20:39

Ok i am able to solve this problem by setting the project id instead of project name in the X-Appwrite-Project field but i am still getting the following error

Faisal7
8 Apr, 2023, 20:39
TalentDev
8 Apr, 2023, 20:41

hi

Faisal7
8 Apr, 2023, 20:42

Hello

Drake
8 Apr, 2023, 20:43

To enable those docs, you'll need to set _APP_OPTIONS_ABUSE environment variables to disabled

Faisal7
8 Apr, 2023, 20:51

Thats great the error is gone now after setting it to disabled perfect thank you

Faisal7
8 Apr, 2023, 20:52

One last thing in the screenshot you see i get the data how can i get the array of a specific field like just the name field in data?

Drake
8 Apr, 2023, 22:27

For now, you can't. We plan on improving the graphql so you have more control over the data

Faisal7
8 Apr, 2023, 23:11

Is it not possible to achieve the same with indexes maybe?

Drake
8 Apr, 2023, 23:42

Not with graphql.

Faisal7
9 Apr, 2023, 13:07

Ok good to know

Faisal7
9 Apr, 2023, 13:10

i am getting the following error eventhough i added all roles to the collection

Faisal7
9 Apr, 2023, 13:16

am i doing something wrong?

Drake
9 Apr, 2023, 15:16

Get index is not available for clients. You would need to use an API key to use that API

Faisal7
9 Apr, 2023, 15:29

And where i should put it in my graphql

Faisal7
9 Apr, 2023, 15:36

Ok i figured it out perfect now the error is gone

Drake
9 Apr, 2023, 15:38

[SOLVED] 404 error when retrieving the graphql schema

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more