Hello,
I’m playing around with composedb and I’m trying to get all posts from users. The query below which grabs all posts only works for my admin-did (did:key:z6…ZWVM) - I’m not able to grab all posts for other dids
query MyQuery {
node(id: "did:key:z6MkisKqwNn5jdw6yVb9zvyhy6vsMnXJSFd7MPEA8QvLZWVM") {
... on CeramicAccount {
id
pPostList(first: 10) {
edges {
node {
content
creator {
id
}
}
}
}
}
}
}
I can see that the posts for other dids do exist by querying for all existing posts
query MyQuery {
pPostIndex(first: 100) {
edges {
node {
content
date
id
creator {
id
}
}
}
}
but 0 posts are returned when I query for all posts for a specific did (besides admin-did) I think I may be missing a crucial concept.
edit: oh maybe it has to do with access control of streams, currently looking into that
sorry I’m not fully following, is this what you had in mind by removing the GQL from line 2
In which case I get an error that the ID field is required
{
"errors": [
{
"message": "Field \"node\" argument \"id\" of type \"ID!\" is required, but it was not provided.",
"locations": [
{
"line": 2,
"column": 3
}
]
}
]
}