HomeDev guideAPI ReferenceGraphQL
Dev guideUser GuideGitHubNuGetDev CommunitySubmit a ticketLog In
GitHubNuGetDev CommunitySubmit a ticket

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.