# core/factories/architecture.factory.ts

> 11 lines of code and 2 definitions.

Tree: GovLab Context
Language: typescript
Layer: infrastructure
Canonical: https://banes-lab.com/anatomy/context#file-context-core-factories-architecture-factory-ts
Source text: https://banes-lab.com/source/context/core/factories/architecture.factory.ts.txt

Listed in [core/factories](https://banes-lab.com/api/source/context/core/factories.md), after [core/factories/algorithm.factory.ts](https://banes-lab.com/source/context/core/factories/algorithm.factory.ts.md) and before [core/factories/check.factory.ts](https://banes-lab.com/source/context/core/factories/check.factory.ts.md).

## Definitions

- `createArchRelations` (lexical_declaration, line 6, exported)
- `ARCH_FACE` (lexical_declaration, line 10, exported)

## Contained in

- [core/factories](https://banes-lab.com/anatomy/context/folder-context-core-factories.md)

## Source

```typescript
import type { ArchRelations, ArchRelationsOptions } from "#types/architecture.types";
import { ArchitectureStore } from "#core/stores/architecture.store";
import { COLLECTIONS } from "#configuration/constants/ontology.constants";
import { defineOntologyFace } from "#core/registries/ontology.registry";

export const createArchRelations = function createArchRelations(options: ArchRelationsOptions = {}): ArchRelations {
    return new ArchitectureStore(options);
};

export const ARCH_FACE = defineOntologyFace<ArchRelations>({
    build: (context) => new ArchitectureStore({ canonicalizeId: context.canonicalizeId, logger: context.logger }),
    name: COLLECTIONS.architecture,
});
```
