basalt / teams/src / MemberUserSource
Interface: MemberUserSource
Defined in: teams/src/stores.ts:43
A read-only directory of user accounts, used to attach contact details to a team's memberships. @basaltkit/auth's UserSource satisfies it as it stands, so the wiring is just teamsPlugin({ users: yourUserSource }).
Implement findByIds for the batched fast path — one query per chunk of ids. Without it Teams falls back to one findById per member: correct, but N round trips.
Methods
findById()
> findById(id): Promise<MemberUser | null>
Defined in: teams/src/stores.ts:44
Parameters
id
string
Returns
Promise<MemberUser | null>
findByIds()?
> optional findByIds(ids): Promise<MemberUser[]>
Defined in: teams/src/stores.ts:46
Bulk lookup; may resolve fewer entries than asked for (unknown ids).
Parameters
ids
readonly string[]
Returns
Promise<MemberUser[]>