FB4D Reference TFirebasePath - SchneiderInfosystems/FB4D GitHub Wiki
Class TFirestorePath
This class offers helper class functions for handling the database path in the Firestore.
Trim Path
This function removes the starting and ending path delimiter from a path.
class function TFirestorePath.TrimStartAndEndPathDelimiters(const Path: string): string;
Convert path into TRequestResourceParam (TStringDynArray)
The following function splits a path into its folder names separated by using a path delimiter of / or .
class function TFirestorePath.ConvertToDocPath(const Path: string): TRequestResourceParam;
The following function converts TRequestResourceParam into a path as string.
class function TFirestorePath.GetDocPath(Params: TRequestResourceParam): string;
The following function check if a string contains a path delimiter.
class function TFirestorePath.ContainsPathDelim(const Path: string): boolean;
The following function extracts the last part (Collection or ID) of a path.
class function TFirestorePath.ExtractLastCollection(const Path: string): string;
The following function removed the last part (Collection or ID) from a path.
class function TFirestorePath.DocPathWithoutLastCollection(
const Path: string): TRequestResourceParam;