Skip to content
🚀 This documentation is for unreal-orm 1.0.0 alpha which requires SurrealDB 2.0 alpha SDK. For the stable version, see npm.

isSurrealLike

isSurrealLike(value): value is SurrealLike

Defined in: config/index.ts:170

Type guard to check if a value is a SurrealLike database instance. Used internally to distinguish between select(db, options) and select(options).

unknown

Value to check

value is SurrealLike

true if value is a SurrealLike instance