• Bind a GraphClient implementation at runtime according to the following rule:

    • If the value of GRAPH_API_CLIENT environment variable is "AstraiosGraphClient", an instance of AstraiosGraphClient will be injected
    • If the value of GRAPH_API_CLIENT environment variable is "JsonGraphQLServerClient", an instance of JsonGraphQLServerClient will be injected
    • Any other values will cause an error "Unknown GRAPH_API_CLIENT implementation" to be thrown

    Invoking this method will bind a specified value to TYPES.userId and TYPES.accessToken. If the Graph client has already bound, this method does nothing.

    Parameters

    Returns void

Generated using TypeDoc