KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Nonexistent vs blank database methods
PRODUCT: 4D | VERSION: 19 | PLATFORM: Mac & Win
Published On: February 22, 2022

When working with a database method (E.G. On REST Authentication method), there is actually a difference in the return type depending on whether the method is nonexistent or is created but has no code.

When this database method is nonexistent which is denoted by the tan background below, the default boolean return value will be True.


However, if a database method was created but was never filled with any code, the default return value is be False and you'll see a "REST login failed" error when accessing the /rest/$directory/login endpoint.


Keep this difference in mind when creating a database method type.