Object injection on creation
In my case, I want to create an entity "Todo" with a field "creator: User". But when I create the command like this: I need the user currently logged-in (the one creating that to-do) to insert it in the "Todo" object. I don't even know if my approach makes sense in the booster…
Weird behavior on register endpoint
Today, when using the registration endpoint, I could register with [email protected] Before that, I was also registered as [email protected] - note the capital 'C', so now I am registered twice. Maybe this is not a d desired behavior
Deleting items from tables
it might be a dumb question but I cannot find an example in the documentation. How do I delete a table item? For instance, I added a product but now I want to get rid of it. There is an option, which is to add an isDeleted property to each Entity we create; however, that makes…
How to create a user?
Hi! Booster provides an endpoint to sign-up but, is there a way to create new users with a custom role from code? For example, if I want to create an admin user but I don't want to set allowSelfSignUp to true for Admins, how I could do it?
How do you "return" an error with Booster?
Here's what I want to do: I'm simulating a bank account, with 2 commands, Withdraw and Deposit. These 2 commands trigger the events MoneyWithdrawn and MoneyDeposited respectively and these events are reduced by the BankAccount entity. How would I return an error when you attempt…
✅ Running tests on the packages?
I'm trying to run the tests for the framework-provider-aws package with npm test but I get: I then noticed that there are very few dependencies in the package.json file (nyc not being one of them). What is the method for running the tests in the packages?