patrick_madx
01/29/2018, 2:19 PMtoken
field. Randomly generated at the server when the user is created. It has to be token: String! @unique
.
When I create a user via another model (e.g. Company). I would like to set the token field server side. How can I achieve this without copy-ing all the possible ways to create a user in my own schema.graphql
?