Skip to content

Feature Request: Enhance Pre-Request Script API for Merging/Adding Variables #2964

@woyehenni

Description

@woyehenni

Is your feature request related to a problem? Please describe.
I am trying to use the Pre-Request Script to dynamically set or inject new variables into my GraphQL request.
However, the newly added item is not included in the final request.

let variables = JSON.parse(altair.data.variables)
variables = {
    ...variables,
    ts: 1234567890,
  sign: "xxxxxxx"
}
altair.data.variables = JSON.stringify(variables)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions