mirror of
https://github.com/suitenumerique/docs.git
synced 2026-08-26 17:32:28 +02:00
We need to search users by their email. For that we will use the trigram similarity algorithm provided by PostgreSQL. To use it we have to activate the pg_trgm extension in postgres db. To query the email we will use the query param `q`. We have another query param `document_id`, it is necessary to exclude the users that have already access to the document.