Type guard to determine if a value is a full model instance rather than just an Id. Used for fields that can be either a model or its ID (e.g., User | User['_id']).
User | User['_id']
Value that could be either a model instance or its ID
True if the value is a model instance, false if it's an Id
Type guard to determine if a value is a full model instance rather than just an Id. Used for fields that can be either a model or its ID (e.g.,
User | User['_id']).