@auth/cosmosdb-adapter
CosmosDbPartitionStrategy
Enumeration Members
HardCodedValue
HardCodedValue: 2;
SameAsDataType
SameAsDataType: 1;
SameAsId
SameAsId: 0;
CosmosDbPartitionConfiguration
type CosmosDbPartitionConfiguration: {
hardCodedValue: string;
partitionKey: string;
partitionKeyStrategy: CosmosDbPartitionStrategy;
};
Type declaration
hardCodedValue?
optional hardCodedValue: string;
partitionKey
partitionKey: string;
partitionKeyStrategy
partitionKeyStrategy: CosmosDbPartitionStrategy;
cosmosHelper
const cosmosHelper: {
withoutKeys: TOUT;
withoutKeysAndId: TOUT;
};
Type declaration
withoutKeys()
Type parameters
Type parameter |
---|
T extends CosmosItem |
TOUT |
Parameters
Parameter | Type |
---|---|
entity | T |
partitionKeyConfiguration ? | CosmosDbPartitionConfiguration |
Returns
TOUT
withoutKeysAndId()
Type parameters
Type parameter |
---|
T extends CosmosItem |
TOUT |
Parameters
Parameter | Type |
---|---|
entity | T |
partitionKeyConfiguration ? | CosmosDbPartitionConfiguration |
Returns
TOUT
CosmosDbAdapter()
CosmosDbAdapter(cosmosContainer, partitionKeyConfiguration?): Adapter
Parameters
Parameter | Type |
---|---|
cosmosContainer | Container |
partitionKeyConfiguration ? | CosmosDbPartitionConfiguration |