How can i validate if Mobile Number is alredy register?

Hello Everyone,


How to check when user trying to register Mobile Number which is already present (Registered) in Database.


Thanks in advance.

Sandip Golande

Hi Sandip,

You can use an Aggregate to query an Entity in your database and search for a specific value, and if that Aggregate returns a result, then you know the value is already present.

Can you tell us a bit more about what you're trying to achieve?