Class Query
The request body for querying an index
Inherited Members
Namespace: Unity.Services.CloudSave.Models
Assembly: solution.dll
Syntax
[Preserve]
public class Query
Constructors
Query(List<FieldFilter>, HashSet<string>, int, int)
The request body for querying an index
Declaration
[Preserve]
public Query(List<FieldFilter> fields, HashSet<string> returnKeys = null, int offset = 0, int limit = 0)
Parameters
Type | Name | Description |
---|---|---|
List<FieldFilter> | fields | fields param |
HashSet<string> | returnKeys | The keys to return in the response. This can include keys not on the index. If not specified or empty, the data on the results will be empty for any returned entities. |
int | offset | The number of results to skip. Defaults to 0. |
int | limit | The maximum number of results to return. Defaults to 10. Specifying 0 will return the default number of results. |
Properties
Fields
Parameter fields of Query
Declaration
[Preserve]
public List<FieldFilter> Fields { get; }
Property Value
Type | Description |
---|---|
List<FieldFilter> |
Limit
The maximum number of results to return. Defaults to 10. Specifying 0 will return the default number of results.
Declaration
[Preserve]
public int Limit { get; }
Property Value
Type | Description |
---|---|
int |
Offset
The number of results to skip. Defaults to 0.
Declaration
[Preserve]
public int Offset { get; }
Property Value
Type | Description |
---|---|
int |
ReturnKeys
The keys to return in the response. This can include keys not on the index. If not specified or empty, the data on the results will be empty for any returned entities.
Declaration
[Preserve]
public HashSet<string> ReturnKeys { get; }
Property Value
Type | Description |
---|---|
HashSet<string> |