The example doesn't allow duplicates, hence only one beer. 😞
Links for this example
About this example
Using the beforeInsert() data hook, you can check if the value to be inserted already exists in the database collection. If the value exists, the insert is rejected.
Note: you will find the code in the file data.js under the Backend folder: