Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SqlQuerySpec

Represents a SQL query in the Azure Cosmos DB service.

Queries with inputs should be parameterized to protect against SQL injection.

example

Parameterized SQL Query

const query: SqlQuerySpec = {
  query: "SELECT * FROM Families f where f.lastName = @lastName",
  parameters: [
    {name: "@lastName", value: "Wakefield"}
  ]
};

Hierarchy

  • SqlQuerySpec

Index

Properties

Properties

Optional parameters

parameters: SqlParameter[]

The parameters you provide in the query

query

query: string

The text of the SQL query

Generated using TypeDoc