type ACL {
...
}
type Person {
id: ID
access: [ACL]
customId: String
name: String!
}
type Note {
type: ID
forPerson: Person
note: String
}
So Person.customId is not globally unique or even type unique, but is unique per the controlled ACL controlled through another layer.
What I want to do is add a Note with an import script mutation. I have the customID. If I add the forPerson and only supply the customID how will it be handled if there are existing matching Person with that customId already?
Add a new Person with only that field.
Link to existing Person(s) that have that value.
If 1, how can I process it so that it does 2 without making that a unique field.
Ok, If that is the best way to go, then next question is what is the ETA of custom logic such as Javascript in custom directive? I think this would be agood use case to keep all this logic on database side and not need to send it to to a 3rd party script that will need to male additional round trips to the db.