# SetNestedQueryHandler<TNestedQueryData>(Func<string, string, IEnumerable<TNestedQueryData>>)

> Sets the function that will handle nested queries. Only one handler can be set.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Search](/engine/6000.6/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor

## SetNestedQueryHandler\<T>(Func\<string, string, IEnumerable\<T>>)

```csharp
public void SetNestedQueryHandler<TNestedQueryData>(Func<string, string, IEnumerable<TNestedQueryData>> handler)
```

### Parameters

**** (\[Func\<string, string, IEnumerable\<T>>]\(https\://learn.microsoft.com/dotnet/api/system.func-1)): The function that handles nested queries. It receives the nested query and the filter token on which the query is applied, and returns an IEnumerable.

### Remarks

\\\<typeparam name="TNestedQueryData"\\>The type of data returned by the nested query.\\\</typeparam\\>
