Logo
NeoArc Studio

Using Projection Sets

Learn how to create and apply projection sets for reusable property configurations. Covers set creation, generic slots, applying sets to projections, and union imports.

Projection sets are reusable collections of property definitions that you can apply to multiple projections. Instead of manually configuring the same audit fields, timestamp columns, or standard metadata properties on every projection, you define them once in a set and apply the set wherever needed.

Why Use Projection Sets

Consistency
Every projection that applies the set gets identical property definitions, types, and defaults
Maintainability
Update the set once and all projections that use it reflect the change
Speed
Apply common patterns in one action instead of manually adding properties to each projection

Creating a Projection Set

Generic Slots

Generic slots allow a single set to adapt to different contexts. Rather than creating separate sets for each variation, you define a slot that gets resolved per-property at apply time.

Applying a Set to a Projection

Common Set Patterns

Set NamePropertiesUse Case
Audit FieldscreatedAt, updatedAt, createdBy, updatedByTrack who created and modified records
Soft DeleteisDeleted, deletedAt, deletedBySupport logical deletion without removing data
Tenant IsolationtenantId, partitionKeyMulti-tenant data separation
API MetadatarequestId, correlationId, timestampStandard fields on API response types
Versioningversion, previousVersion, versionTimestampTrack entity version history

Set Drift Detection

When a projection set is updated after it has been applied to projections, those projections may fall out of sync with the latest set definition. NeoArc detects this drift automatically and highlights affected projections so you can review and reapply the updated set where needed.

Next Steps

Projection Unions
Import entire entities from other projections by reference
Learn more →
Expression Builder
Add derived properties that use set fields in calculations
Learn more →
Chaining Projections
Use sets consistently across chained projection layers
Learn more →