Document Store
How to use
final class UserStore
{
public function __construct(private DocumentStore $documentStore) {}
public function store(User $user): void
{
$this->documentStore->addDocument("users", $user->getId(), $user);
}
public function getUser(int $userId): User
{
return $this->documentStore->getDocument("users", $userId);
}
}Storing Aggregates in your Document Store
Conversions
Other Possibles Methods
Last updated
Was this helpful?