commercetools-jvm-sdk icon indicating copy to clipboard operation
commercetools-jvm-sdk copied to clipboard

Missing Query DSLs for reference expansions

Open heshamMassoud opened this issue 6 years ago • 0 comments

There are some reference expansion paths that are not supported by the Query DSL from the JVM SDK yet:

  • state
  • and custom types:
    • on prices:
      • masterData.staged.masterVariant.prices[*].custom.type
      • masterData.staged.variants[*].prices[*].custom.type
    • on assets:
      • masterData.staged.masterVariant.assets[*].custom.type
      • masterData.staged.variants[*].assets[*].custom.type

category references:

  • custom.type
  • assets[*].custom.type

It's not a blocking issue, since an alternative could be to simply plug in the expansion paths in the ExpansionPath#of method: . For example:

.plusExpansionPaths(ExpansionPath.of("masterData.staged.variants[*].assets[*].custom.type"))

However, it still would be nice to use the QueryDSL for all reference expansion paths consistently :)

heshamMassoud avatar Mar 12 '18 08:03 heshamMassoud