[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
- Index with the requested key already exi...
I'm using appwrite cli to create DB and I'm getting index_already_exists Is there a way to undestand the index name and maybe to skip if it's already exits?
- Hola equipo de soporte,
Hola equipo de soporte, Estoy desarrollando una Function en Appwrite Cloud con Node.js 22 y el siguiente package.json: { "name": "upload-whitelist", "type"...
- Looking for Partner
I'm looking for partner for long-term collaborating. Of course, I'll pay for you. If you are interested, Please DM me.
