Skip to main content
const repo = await store.findOne({ id: "team/project-alpha" });
if (repo) {
  console.log(`Found repository: ${repo.id}`);
}

Options

id
string
required
The repository ID to search for.

Returns

Returns a Repository instance if found, or null/None if the repository doesn’t exist. In Go, FindOne returns (*Repo, error) and uses nil for not found.