Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No sample code provided for listEntities #1357

Open
bcazur opened this issue Jan 24, 2022 · 1 comment
Open

No sample code provided for listEntities #1357

bcazur opened this issue Jan 24, 2022 · 1 comment

Comments

@bcazur
Copy link

bcazur commented Jan 24, 2022

The documentation quality is rather poor, as it doesn't provide a sample for a very basic scenario: query using a filter.
We would expect at least one example with a filter on RowKey or on PartitionKey.

@bcazur
Copy link
Author

bcazur commented Jan 24, 2022

For whom it may interest, here is how to listEntities using a filter (sample table Users using email as RowKey).


  const tableClient = new AzureTables.TableClient(`https://${account}.table.core.windows.net`, "Users",
    credential);

  let entities = tableClient.listEntities({queryOptions:{filter: `RowKey eq '${email}'`}});
  for await (const entity of entities) {
    context.log(entity);


  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant