1 {"slug":"/references/settings/interfaces/settings.JoinerServiceConfig","title":"JoinerServiceConfig","frontmatter":{"displayed_sidebar":"settingsReference"},"toc":[],"blocks":[{"kind":"markdown","html":"Configuration for a service registered with the Joiner."},{"kind":"typeList","sectionTitle":"JoinerServiceConfig","types":[{"name":"serviceName","type":"`string`","description":"The unique name of the service.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"alias","type":"[JoinerServiceConfigAlias](/references/settings/interfaces/settings.JoinerServiceConfigAlias) \\| [JoinerServiceConfigAlias](/references/settings/interfaces/settings.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 -&#62; items -&#62; 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. &#123; 'price': 'prices.calculated\\_price\\_set.amount' &#125;)","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":"primaryKeys","type":"`string`[]","description":"The primary key fields used to identify records in this service.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"relationships","type":"[JoinerRelationship](/references/settings/types/settings.JoinerRelationship)[]","description":"The relationships this service has with other services.","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":"extends","type":"`object`[]","description":"Relationship extensions that this service adds to other services.","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":"relationship","type":"[JoinerRelationship](/references/settings/types/settings.JoinerRelationship)","description":"Defines a relationship between two services in the Joiner.","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":"args","type":"`Record<string, any>`","description":"Extra arguments to pass to the remoteFetchData callback","optional":true,"defaultValue":"","expandable":false,"children":[]}]}]}