[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
- Apple OAuth in SwiftUI
Any ideas why this error might be showing up when trying it sign in via apple in SwifUI? _Concurrency/CheckedContinuation.swift:196: Fatal error: SWIFT TASK CO...
- exclude password field from getDocument
i got a getDocument that lists data from the user (username, password, id.....) so my question is how do i exclude the password so it doesnt get listed out? m...
- Date objects behaving weird
I've programmed an app that uses Date objects. Everything works perfectly in my local environment, but on my hosted version with Vercel, the times of the object...
