The UI has this built into the query:
mutation InsertSequenceToActivity($input: sequence_to_simulated_activity_insert_input!) {
sequence: insert_sequence_to_simulated_activity_one(object: $input, on_conflict: {constraint: sequence_to_simulated_activity_primary_key, update_columns: [seq_id]}) {
seq_id
}
}
This will prevent uniqueness violations when trying to link activities to a sequence that are already currently linked to another sequence.
The UI has this built into the query:
This will prevent uniqueness violations when trying to link activities to a sequence that are already currently linked to another sequence.