outline | breadcrumbs | status | |||
---|---|---|---|---|---|
|
|
released |
Draft-enabled entities shall not be used in views that make use of JOIN
. This rule will report a warning for any violations.
In the following example, no draft-enabled entities are used in the service CatalogService
:
::: code-group <<< ../examples/no-join-on-draft/correct/srv/cat-service.cds#snippet{cds:line-numbers} [srv/cat-service.cds] :::
In the next example, the service CatalogService
uses a draft-enabled entity and makes use of JOIN
, which violates the rule:
::: code-group <<< ../examples/no-join-on-draft/incorrect/srv/cat-service.cds#snippet{cds:line-numbers} [srv/cat-service.cds] :::
This rule was introduced in @sap/eslint-plugin-cds 2.2.1
.