Record not found, no longer errors
The Polybase client@polybase/client no longer throws an error if a record is not found. Polybase now always returns a CollectionRecordResponse.
If the record does not exist, the .data property will be null. You can call also use the helper method .exists() to check if the record exists.
Before
You had to capture the error and check if it was aPolybaseError and if the reason was record/not-found.
After
Polybase client will not error on record not found. Instead,.data property will be null.