• Builds a pg settings object for the currently authenticated management subject. Used for RLS authentication in both PostGraphile and zapatos.

    Parameters

    • subject: undefined | PgAuthenticatedManagementSubject

      Currently authenticated management subject.

    • dbRole: string

      The database role to switch to

    • serviceId: string

      The serviceId of the current service

    Returns Dict<string>

  • Builds a pg settings object for the currently authenticated management subject. Excludes permissions and tags. Used for RLS authentication in both PostGraphile and zapatos.

    Parameters

    Returns Dict<string>

Generated using TypeDoc