Retrieves a collection with the provided ID.
function getCollection(_id: string): Promise<Collection>;
Requested collection ID.
import { collections } from "@wix/stores";
async function getCollection(id) {
const response = await collections.getCollection(id);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.