---
title: "definition(named:in:)"
framework: Compute Graph
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "computegraph/computenodegraph/library/definition(named:in:)"
---

# definition(named:in:)

Returns the first node definition with the given name, or nil if none is found.

## Declaration

```swift
final func definition(named name: String, in bundle: String? = nil) -> ComputeNodeGraph.NodeDefinition?
```

## Discussion

Discussion Pass nil for bundle to search across all bundles.
