Skip to main content
Closed

Transformations unable to populate extension Type properties

Related products:Transformations and RAW
  • January 16, 2025
  • 1 reply
  • 14 views

Using the following models as an example:
In space "imdb_core":

type PersonType {
typename: String!
people: [Person] @reverseDirectRelation(throughProperty: "personType")
}

type Person {
personType: PersonType
name: String!
}

Extension Model in space "imdb_ext":
type Actor
@view(
rawFilter: {
nested: {
scope: ["imdb_core", "Person/v1", "personType"]
filter: {
equals: {
property: ["imdb_core", "PersonType/v1", "typename"]
value: "Actor"
}
}
}
}
) {
Name: String! @mapping(space: "imdb_core", container: "Person", property: "name")
Salary: Float
}

Populate instances into space: imdb_core using the Person View
Populate instances into the Actor View:

  • Via the API, you do not need to specify the mandatory Name property as the instance already exists. See example screen shot. If you create a new instance, you do need to specify the mandatory properties. The API works as expected.

  • Via transformations, you will need to specify the mandatory Name property in either case.
    SLB has raised that this behavior is inconsistent. In order to populate extension types, users will need to respecify the Mandatory properties of the base types in order to leverage transformations.

 

 

1 reply

  • Practitioner
  • 11 replies
  • January 16, 2025

Hi ​@Udantha Wijeweera and thank you for taking the time to submit this product idea.

I’ve notified the Product Manager responsible for the Transformations in CDF, and expect them to either reach out directly, or connect with you through this thread should they have any questions or any further follow-up


Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings