Search publications
Fetch all publications that match match the specified search query and filters.
Publications can be searched on their hashtag, tags and text.
Note: There is also the option to further filter the results returned by the search using the where
parameter.
Request
Invocation
const result = await client.search.publications({
query: "searchTerm",
});
query SearchPublications($request: PublicationSearchRequest!) {
result: searchPublications(request: $request) {
items {
... on Post {
...Post
}
... on Comment {
...Comment
}
... on Quote {
...Quote
}
}
pageInfo {
...PaginatedResultInfo
}
}
}
Response
Paginated result with PrimaryPublication
Full GraphQL API Example
Updated about 1 month ago