|
1
|
{"slug":"/references/user/IModuleService/methods/user.IModuleService.__joinerConfig","title":"__joinerConfig","frontmatter":{"displayed_sidebar":"userReference"},"toc":[{"title":"Returns","id":"joinerconfig-returns","level":2}],"blocks":[{"kind":"heading","level":2,"text":"Returns","id":"joinerconfig-returns"},{"kind":"typeList","sectionTitle":"__joinerConfig","types":[{"name":"alias","type":"[JoinerServiceConfigAlias](/references/user/interfaces/user.JoinerServiceConfigAlias) \\| [JoinerServiceConfigAlias](/references/user/interfaces/user.JoinerServiceConfigAlias)[]","description":"Property name to use as entrypoint to the service","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"name","type":"`string` \\| `string`[]","description":"The alias name or list of alias names for the service entry point.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"entity","type":"`string`","description":"The entity name associated with this alias.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"filterable","type":"`string`[]","description":"The list of fields that can be used as filters when querying through this alias.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"__internal","type":"`object`","description":"Internal-only alias metadata used by the query layer.","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"crossjoinable","type":"`string`[]","description":"Non-computed DML fields that can be used in cross-module SQL joins.\nUsed as an optimization layer to determine which fields are safe to\npush into EXISTS-based cross-module filters.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"tableName","type":"`string`","description":"Physical table name (without PG schema) backing the alias entity.\nRequired to build cross-module SQL joins against the entity's table.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"schema","type":"`string`","description":"PG schema of the entity's table, when the DML definition specifies one.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"relations","type":"`Record<string, object>`","description":"Module-internal DML relations of the alias entity, keyed by property\nname. Used to traverse own-model hops when building cross-module SQL\njoins (e.g. cart -> items -> product).","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"args","type":"`Record<string, any>`","description":"Extra arguments to pass to the remoteFetchData callback","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"fieldAlias","type":"`Record<string, string \\| object>`","description":"alias for deeper nested relationships (e.g. { 'price': 'prices.calculated\\_price\\_set.amount' })","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"path","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"forwardArgumentsOnPath","type":"`string`[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"args","type":"`Record<string, any>`","description":"Extra arguments to pass to the remoteFetchData callback","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"schema","type":"`string`","description":"GraphQL schema for the all module's available entities and fields","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"idPrefixToEntityName","type":"`Record<string, string>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"relationships","type":"[ModuleJoinerRelationship](/references/user/types/user.ModuleJoinerRelationship)[]","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"alias","type":"`string`","description":"The alias used to reference the related service in queries.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"foreignKey","type":"`string`","description":"The foreign key field on the related service used to join the relationship.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"primaryKey","type":"`string`","description":"The primary key field on the current service used to join the relationship.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"serviceName","type":"`string`","description":"The name of the related service.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"entity","type":"`string`","description":"The entity name within the related service.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"inverse","type":"`boolean`","description":"In an inverted relationship the foreign key is on the other service and the primary key is on the current service","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"isList","type":"`boolean`","description":"Force the relationship to return a list","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"args","type":"`Record<string, any>`","description":"Extra arguments to pass to the remoteFetchData callback","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"deleteCascade","type":"`boolean`","description":"If true, the link joiner will cascade deleting the relationship","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"filterable","type":"`string`[]","description":"The fields to be filterable by the Index module using query.index","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"hasMany","type":"`boolean`","description":"Allow multiple relationships to exist for this\nentity","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"extends","type":"`object`[]","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"serviceName","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"entity","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"fieldAlias","type":"`Record<string, string \\| object>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"path","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"forwardArgumentsOnPath","type":"`string`[]","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"isList","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"relationship","type":"Omit<[ModuleJoinerRelationship](/references/user/types/user.ModuleJoinerRelationship), \"hasMany\">","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"alias","type":"`string`","description":"The alias used to reference the related service in queries.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"foreignKey","type":"`string`","description":"The foreign key field on the related service used to join the relationship.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"primaryKey","type":"`string`","description":"The primary key field on the current service used to join the relationship.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"serviceName","type":"`string`","description":"The name of the related service.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"entity","type":"`string`","description":"The entity name within the related service.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"inverse","type":"`boolean`","description":"In an inverted relationship the foreign key is on the other service and the primary key is on the current service","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"isList","type":"`boolean`","description":"Force the relationship to return a list","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"args","type":"`Record<string, any>`","description":"Extra arguments to pass to the remoteFetchData callback","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"deleteCascade","type":"`boolean`","description":"If true, the link joiner will cascade deleting the relationship","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"filterable","type":"`string`[]","description":"The fields to be filterable by the Index module using query.index","optional":true,"defaultValue":"","expandable":false,"children":[]}]}]},{"name":"serviceName","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"primaryKeys","type":"`string`[]","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"isLink","type":"`boolean`","description":"If the module is a link module","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"linkableKeys","type":"`Record<string, string>`","description":"Keys that can be used to link to other modules. e.g { product\\_id: \"Product\" } \"Product\" being the entity it refers to","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"isReadOnlyLink","type":"`boolean`","description":"If true it expands a RemoteQuery property but doesn't create a pivot table","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"extraDataFields","type":"`string`[]","description":"Fields that will be part of the link record aside from the primary keys that can be updated\nIf not explicitly defined, this array will be populated by databaseConfig.extraFields","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"databaseClientUrl","type":"`string`","description":"Resolved database client URL for this module. This is used to determine if we can do in-DB cross module filtering","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"databaseConfig","type":"`object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"tableName","type":"`string`","description":"Name of the pivot table. If not provided it is auto generated","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"idPrefix","type":"`string`","description":"Prefix for the id column. If not provided it is \"link\"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"extraFields","type":"[LinkModulesExtraFields](/references/user/types/user.LinkModulesExtraFields)","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"type","type":"`\"date\"` \\| `\"time\"` \\| `\"datetime\"` \\| `bigint` \\| `\"blob\"` \\| `\"uint8array\"` \\| `\"array\"` \\| `\"enumArray\"` \\| `\"enum\"` \\| `\"json\"` \\| `\"integer\"` \\| `\"smallint\"` \\| `\"tinyint\"` \\| `\"mediumint\"` \\| `\"float\"` \\| `\"double\"` \\| `\"boolean\"` \\| `\"decimal\"` \\| `\"string\"` \\| `\"uuid\"` \\| `\"text\"`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"defaultValue","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"nullable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"options","type":"`Record<string, unknown>`","description":"Mikro-orm options for the column","optional":true,"defaultValue":"","expandable":false,"children":[]}]}]}]}]} |