Filter by IDs
Filter docmuments by IDs.
Beta
The Optimizely Graph .NET Client is in beta. Contact your Customer Success Manager for information.
The Ids
method is used to get documents by Guid. The argument is an array of Ids
.
var query = queryBuilder
.ForType<MyDocument>()
.Ids(“guid1”, “guid2”)
.ToQuery()
.BuildQueries();
var content = (await query.GetResultAsync<MyDocument>()).Content;
For information, see Guid filtering.
Updated 6 months ago