There are functions in controllers which are used to validate whether or not an entity with a given property exists. A strict equality comparison is done to determine whether to return true or false. As Postgres always returns a string representation of the integer, we have to determine this another way.
There are functions in controllers which are used to validate whether or not an entity with a given property exists. A strict equality comparison is done to determine whether to return
true
orfalse
. As Postgres always returns a string representation of the integer, we have to determine this another way.