Filter by IDs
Filter documents by GUID using the Ids method.
NoteOptimizely 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;For information, see GUID filtering.
Updated 12 days ago
