Skip to main content

Cosmos

The Cosmos Object contains the unique properties and methods used to make database queries and requests to cosmos.

Type Aliases

Type AliasDescription
DataComparisonOperatorA type that identifies possible data comparison operators. The type is used for constructing a SQL query.
SocketIODataTriggerSocketIODataTrigger Type
SocketIOTriggerSocketIOTrigger type

Variables

VariableDescription
CONTAINER_IDThe COSMOS container ID: "RoomsAndUsers"
cosmosCosmos object with methods used to create, query, or delete records.
cosmosNodeByUUIDA SQL query to retrieve a node by UUID through an Azure Cosmos DB input binding.
cosmosRoomByShortnameA SQL query to retrieve a room by shortname through an Azure Cosmos DB input binding.
cosmosRoomByUUIDA SQL query to retrieve a room by UUID through an Azure Cosmos DB input binding.
cosmosUserByUUIDA SQL query to retrieve a user by UUID through an Azure Cosmos DB input binding.
cosmosWriteAzure Cosmos output binding that lets you write a new document to an Azure Cosmos DB database
dbConfigAn object containing the database configuration settings
DEFAULT_HUBThe default hub name for the SocketIO
socketIODataAzure Cosmos generic option that is used to output socketIO data to other users
socketIOEmitAzure Cosmos generic option that is used to emit a socket event to other users