Skip to content

Update Aerie-CLI expanded sequence link query to handle conflict #123

Description

@cartermak

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew/improved features and capabilities

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions