Filter by IDs
1 min
Optimizely Graph .NET Source SDK is optimized for CMS 12. Learn more about the C# SDK for CMS 13.
Use the Ids method to retrieve documents by GUID. The method accepts an array of GUID values.
var query = queryBuilder
.ForType<MyDocument>()
.Ids("guid1", "guid2")
.ToQuery()
.BuildQueries();
var content = (await query.GetResultAsync<MyDocument>()).Content;