UNPKG

1.61 kBSource Map (JSON)View Raw
1{"version":3,"sources":["../../src/find-options/JoinOptions.ts"],"names":[],"mappings":"","file":"JoinOptions.js","sourcesContent":["/**\n * Used to specify what entity relations should be loaded.\n *\n * Example:\n * const options: JoinOptions = {\n * alias: \"photo\",\n * leftJoin: {\n * author: \"photo.author\",\n * categories: \"categories\",\n * user: \"categories.user\",\n * profile: \"user.profile\"\n * },\n * innerJoin: {\n * author: \"photo.author\",\n * categories: \"categories\",\n * user: \"categories.user\",\n * profile: \"user.profile\"\n * },\n * leftJoinAndSelect: {\n * author: \"photo.author\",\n * categories: \"categories\",\n * user: \"categories.user\",\n * profile: \"user.profile\"\n * },\n * innerJoinAndSelect: {\n * author: \"photo.author\",\n * categories: \"categories\",\n * user: \"categories.user\",\n * profile: \"user.profile\"\n * }\n * };\n */\nexport interface JoinOptions {\n\n /**\n * Alias of the main entity.\n */\n alias: string;\n\n /**\n * Array of columns to LEFT JOIN.\n */\n leftJoinAndSelect?: { [key: string]: string };\n\n /**\n * Array of columns to INNER JOIN.\n */\n innerJoinAndSelect?: { [key: string]: string };\n\n /**\n * Array of columns to LEFT JOIN.\n */\n leftJoin?: { [key: string]: string };\n\n /**\n * Array of columns to INNER JOIN.\n */\n innerJoin?: { [key: string]: string };\n\n}\n"],"sourceRoot":".."}
\No newline at end of file