[SOLVED] GraphQL Explorer not connecting to collection on localhost
- 0
- Self Hosted
- Accounts
- Databases
- Web
The docs (https://appwrite.io/docs/server/databases?sdk=graphql-default#databasesListCollections) have this:
query {
databasesListCollections(
databaseId: "[DATABASE_ID]"
) {
total
collections {
_id
_createdAt
_updatedAt
_permissions
databaseId
name
enabled
documentSecurity
attributes
indexes {
key
type
status
attributes
}
}
}
}
so you might want to start with that
and then the explorer gives a warning about attributes so you can remove it to quickly test an API call
do i need to reference a collection or do queries search across all collections in a database?
What do you mean? this API call is list collections...it lists all the collections in a database
list documents will give you the documents in a collection: https://appwrite.io/docs/server/databases?sdk=graphql-default#databasesListDocuments
sometimes a message pops up and says "something is broken"
no these are not the right headers. see the list of headers here: https://appwrite.io/docs/rest#headers
oohhh..
and you never answered how you're accessing the Appwrite console. What's the URL you use to access your Appwrite console?
this error says something about file variables...can you open the variables pane at the bottom left of the screenshot you shared?
variables is empty
how about files at the bottom of the variables pane
0 files
what exactly shows there?
sure...make sure to fill in the appropriate values, though
they are filled
There you go. and the explorer can help give you hints about what's wrong with the query
interesting though i got this error whether or not i had the project and key filled out
yes because the query itself is invalied. you can see attributes and index have a red underline in the query
I can connect thank you
[SOLVED] GraphQL Explorer not connecting to collection on localhost
Recommended threads
- Selfhost - Starting Docker containers fa...
I am stuck at installing appwrite. Specifically, the containers dont want to start up. The images are downloaded and ready. Dockhand is reporting containers st...
- It says domain already used but I have d...
I accidentally deleted the project in which I used my domain originally (orexia.app) from name.com. Now I am trying to add it to a different project and it says...
- Is this normal in the self host custom d...
when i try to add custom domain to the project did not see this in 1.8.0 ok when pressed the retry it says "DNS verification failed with resolver 8.8.8.8. Domai...