@shopify/cli-kit
    Preparing search index...
    • Resolves the GraphQL operation for a bulk command from either an inline --query value or a --query-file path, validating that it's non-empty and contains exactly one operation.

      Centralizes the read-and-validate logic shared by the app and store bulk execute commands.

      Parameters

      • input: ResolveBulkOperationQueryInput

        The inline query and/or the query file path (exactly one is expected).

      Returns Promise<string>

      The validated GraphQL operation string.

      AbortError if the value/file is empty or missing, or the operation is invalid.

      BugError if neither input was provided (oclif's exactlyOne constraint should prevent this).