# New-MVQuery

## Synopsis

Defines a search criteria for use in a metaverse search

## Syntax

```
New-MVQuery [-Attribute] <String> [[-Operator] <MVSearchFilterOperator>] [[-Value] <Object>] 
```

## Description

The New-MVQuery cmdlet creates an object that stores the criteria to use in a metaverse search. This cmdlet is used in conjunction with the [Get-MVObject](https://docs.lithnet.io/mim-sync-service/usage/cmdlet-reference/get-mvobject) cmdlet

## Parameters

#### -Attribute \<string>

The name of the attribute to query

|                             |       |
| --------------------------- | ----- |
| Required?                   | true  |
| Position?                   | 1     |
| Default value               |       |
| Accept pipeline input?      | false |
| Accept wildcard characters? | false |

#### -Operator \<string>

The operator to apply to the query. This must be on of the supported Metaverse seach operators for the data type of the attribute specified. Allowed values are `Equals`, `Contains`, `NotContains`, `IsPresent`, `IsNotPresent`, `StartsWith`, and `EndsWith`

|                             |       |
| --------------------------- | ----- |
| Required?                   | true  |
| Position?                   | 2     |
| Default value               |       |
| Accept pipeline input?      | false |
| Accept wildcard characters? | false |

#### -Value&#x20;
