Movatterモバイル変換


[0]ホーム

URL:


Dev guideRecipesAPI ReferenceChangelog
Dev guideRecipesUser GuidesNuGetDev CommunityOptimizely AcademySubmit a ticketLog InCross-platform products
Dev guide
All
Pages
Start typing to search…

Operation name

Set the operation name for the search query.

Optimizely Graph's query has anOperationName as the query's name. In the Optimizely Graph .NET Client, you can set the name for the query’s operation using the methodOperationName. By default, the name is "SampleQuery", but you should specify the name for tracing the query log.

TheOperationName is a string with no space characters and must start with a letter or underscore. If your parameter does not match the validation, it will use the defaultOperationName.

📘

Note

The length ofOperationName must be less than 25 characters.

For example:

var query1 = queryBuilder.OperationName(“CountDocuments”) //valid.ForType<MyDocumentType>().Total().ToQuery().BuildQueries();var query2 = queryBuilder.OperationName(“1_times_query”) //invalid because not allow number at the begining.ForType<MyDocumentType>().Total().ToQuery().BuildQueries();var query3 = queryBuilder.OperationName(“__MyQuery__”) //valid.ForType<MyDocumentType>().Total().ToQuery().BuildQueries();

Updated 23 days ago



[8]ページ先頭

©2009-2025 Movatter.jp