OpenAssetIO / OpenAssetIO

An open-source interoperability standard for tools and content management systems used in media production.
Apache License 2.0
283 stars 31 forks source link

Should `getWithRelationship*` `resultTraitSet` be a `TraitsData` #1216

Open foundrytom opened 9 months ago

foundrytom commented 9 months ago

Limiting it to a trait set precludes filtering based on properties (eg: specifying a specific mime type).

We also can't batch on result trait set which may precipitate extra relationship definitions to allow batch queries along multiple result trait sets for the same source. This might not be a bad thing though.

_Originally posted by @foundrytom in https://github.com/OpenAssetIO/OpenAssetIO-MediaCreation/pull/71#discussion_r1410407482_

foundrytom commented 9 months ago

Probably makes more sense to add traits to the predicate (and maybe get rid of this param entirely) rather than extending it.