# Create(QueryGraph, ICollection<QueryError>)

> Implement this function to create a new query handler for a specific query graph.

## Definition

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

```csharp
TQueryHandler Create(QueryGraph graph, ICollection<QueryError> errors)
```

### Parameters

**** (\[QueryGraph]\(/engine/6000.6/script-reference/unityeditor/search/querygraph)): A graph representing a query.**** (\[ICollection\<QueryError>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1)): A collection of errors. Use this to report errors when needed.

### Returns

| Type | Description                                                                               |
| ---- | ----------------------------------------------------------------------------------------- |
| T    | An [IQueryHandler](/engine/6000.6/script-reference/unityeditor/search/iqueryhandler2.md). |
