Initializer
init(prefix:strategy:)
Configure a
CompositeParentProperty with a key prefix and prefix strategy.init(prefix: FieldKey, strategy: KeyPrefixingStrategy = .snakeCase)
Parameters
prefixA prefix to be applied to the key of each individual field of the referenced model’s
IDValue.strategyThe strategy to use when applying prefixes to keys.
KeyPrefixingStrategy.snakeCaseis the default.