🔍 findcontent(targetID, { productName })
Finds content by ID using indexed IDManager lookup.
1const content = await db.cms.findcontent('content-id-123', { productName: 'CodeBuddy' });
Response
1{2 success: true,3 data: {4 user: "alice@example.com",5 channel: "Channel1",6 content: { ... }7 }8}
Notes
- Uses
IDManagerfor efficient indexed resolution. - Returns
nullif content is not found. - Avoids filesystem-wide traversal when possible.