---
title: "nodeDetails(forKeys:)"
framework: opendirectory
role: symbol
role_heading: Instance Method
path: "opendirectory/odnode/nodedetails(forkeys:)"
---

# nodeDetails(forKeys:)

Returns a dictionary containing details about a node.

## Declaration

```swift
func nodeDetails(forKeys inKeys: [Any]!) throws -> [AnyHashable : Any]
```

## Parameters

- `inKeys`: An array of keys corresponding to the values returned in the dictionary.

## Return Value

Return Value A dictionary containing details about the node corresponding to keys specified by inKeys.

## Discussion

Discussion note: In Swift, this method returns a nonoptional result and is marked with the throws keyword to indicate that it throws an error in cases of failure. You call this method in a try expression and handle any errors in the catch clauses of a do statement, as described in Error Handling in The Swift Programming Language and About Imported Cocoa Error Parameters.

## See Also

### Querying a Node

- [customCall(_:send:)](opendirectory/odnode/customcall(_:send:).md)
- [nodeName](opendirectory/odnode/nodename.md)
- [subnodeNames()](opendirectory/odnode/subnodenames().md)
- [unreachableSubnodeNames()](opendirectory/odnode/unreachablesubnodenames().md)
