web-shared-infrastructure
Cliente GraphQL de la web.
- Import:
@task-stream/web/shared/infrastructure - Capa:
infrastructure· Tags:scope:web-shared,type:infrastructure
Contenido
provideGraphql(): Apollo con HTTP para queries/mutations ygraphql-wspara subscriptions; caché desactivada.AccessTokenSource(puerto): de dónde sale el token (lo implementa identity).API_CONFIG/apiConfigFromLocation(): la API se sirve en el mismo origen (/api,/graphql).
Comandos
npx nx lint web-shared-infrastructure
Reglas de dependencia entre capas: Arquitectura.