---
title: "build_KeyPath(root:keyPath:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/predicateexpressions/build_keypath(root:keypath:)"
---

# build_KeyPath(root:keyPath:)

## Declaration

```swift
static func build_KeyPath<Root, Value>(root: Root, keyPath: any KeyPath<Root.Output, Value> & Sendable) -> PredicateExpressions.KeyPath<Root, Value> where Root : PredicateExpression
```
