I want to get value of a variable(InputAssetId) stored in a document as a string.Wrote the query.It works fine in the QueryExplorer.
this.client = new DocumentClient(new Uri(EndpointUri), PrimaryKey);
IQueryable<asset> id = this.client.CreateDocumentQuery<asset>(
UriFactory.CreateDocumentCollectionUri(DatabaseName,CollectionName),
"SELECT c.InputAssetId FROM c WHERE c.BlobNameDb='BigBuckBunny.mp4' ");
Console.WriteLine( id.string());
Instead of a value stored in the variable,what i got in the console is given below
{"query":"SELECT c.InputAssetId FROM c WHERE c.BlobNameDb='BigBuckBunny.mp4' "}
Can anyone please give me a solution?
asset? And by the way, shouldn't you get aIQueryable<string>if you select the id only?