Type Alias Functionref

Functionref:
    | string
    | {
        arguments?: unknown;
        invoke?: "SYNC"
        | "ASYNC";
        refName: "app.reload";
        selectionSet?: string;
    }

A reference to a function to invoke, either as a name string or a structured object.

Type Declaration

  • string
  • {
        arguments?: unknown;
        invoke?: "SYNC" | "ASYNC";
        refName: "app.reload";
        selectionSet?: string;
    }
    • Optionalarguments?: unknown

      Arguments to pass to the function. The app.reload function accepts:

      • appId (string, required): The ID of the app to reload.
      • partial (boolean, default false): Whether to perform a partial reload.
      • weight (integer, 1 to 10, default 1): How quickly the reload is picked up relative to other reloads already queued for your subscription. A weight of 10 starts sooner than a weight of 1. It does not affect the reload once running. Apps in personal spaces always run with weight 1. Values outside 1 to 10 are rejected.
    • Optionalinvoke?: "SYNC" | "ASYNC"

      Specifies whether the function is invoked synchronously or asynchronously.

    • refName: "app.reload"

      The name of the function to invoke.

    • OptionalselectionSet?: string

      A GraphQL selection set string. Only applicable when the function type is graphql.

{
* arguments: {
* "appId": "80c6f35f-c9d7-4488-bb5a-ad973b13ec00",
* "partial": false,
* "weight": 5
* },
* refName: "app.reload"
* }