Optional
limit?: InputMaybe<LimitType>Optional
where?: InputMaybe<PublicationSearchWhere>Experimental
Search for publications based on a defined criteria.
This signature supports React Suspense.
const { data } = useSearchPublications({
query: 'foo',
suspense: true,
});
console.log(data);
Use startTransition to avoid to re-suspend the component.
const [query, setQuery] = useState('foo');
const { data } = useSearchPublications({
query,
suspense: true,
});
const search = () => {
startTransition(() => {
setQuery('bar');
});
};
This API can change without notice
Search for publications based on a defined criteria.
Search for publications with content that contains "foo"
Search for audio post publications with content that matches a query