Invoke Shopify Graph Ql
Zuletzt geändert: 14.03.2026 05:56

Invoke-ShopifyGraphQL #

Intern – Diese Funktion ist nicht exportiert und nur modulintern verfügbar.

ÜBERSICHT #

Führt einen GraphQL-Aufruf gegen die Shopify Admin API aus (privater Helper).

SYNTAX #

Invoke-ShopifyGraphQL [-Shop] <string> [-Token] <string> [-ApiVersion] <string> [-Query] <string>
    [[-Variables] <hashtable>] [[-MaxRetries] <int>] [[-TimeoutSec] <int>] [<CommonParameters>]

BESCHREIBUNG #

Sendet eine GraphQL-Query oder Mutation an den Shopify Admin-Endpunkt. Unterstützt Retry bei HTTP 429 und GraphQL-Throttling (extensions.cost.throttleStatus). Prüft die Antwort auf GraphQL-Fehler und wirft bei Bedarf eine Exception. Gibt das ‘data’-Objekt der Antwort zurück.

PARAMETER #

-Shop #

Type: string

Shopify-Shop-Domain, z.B. ‘mein-shop.myshopify.com’.

-Token #

Type: string

Admin API Access Token (shpat_…) der Custom App.

-ApiVersion #

Type: string

API-Version, z.B. ‘2025-01’.

-Query #

Type: string

GraphQL-Query oder Mutation als String.

-Variables #

Type: hashtable

Optionale Variablen als Hashtable für die GraphQL-Query.

-MaxRetries #

Type: int
Default: 3

Maximale Anzahl Wiederholungen bei Rate-Limit (429) oder Throttling.

-TimeoutSec #

Type: int
Default: 60

HTTP Timeout in Sekunden.

AUSGABEN #

pscustomobject

HINWEISE #

Private Funktion. Wird von öffentlichen Shopify-GraphQL-Funktionen aufgerufen.