docs: add useful information to custom transformers

Signed-off-by: Rogerio Angeliski <angeliski@hotmail.com>
This commit is contained in:
Rogerio Angeliski
2022-11-30 16:26:18 +00:00
parent 936d1cc98a
commit 59a87c9149
+4
View File
@@ -165,6 +165,10 @@ There is also a `defaultUserTransformer` and `defaultOrganizationTeamTransformer
You could use these and simply decorate the response from the default
transformation if you only need to change a few properties.
**Attention:**
When you use the Events Support with a `TeamTransformer`, you need to ensure your entity will have the
annotation `github.com/node-id` with the value from `team.id`. Without this, the `team.edit` event could fail to update
### Resolving GitHub users via organization email
When you authenticate users you should resolve them to an entity within the