first commit
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||
import nock from 'nock';
|
||||
|
||||
import { credentials } from '../credentials';
|
||||
|
||||
describe('Azure Cosmos DB - Create Container', () => {
|
||||
beforeEach(() => {
|
||||
const { baseUrl } = credentials.microsoftAzureCosmosDbSharedKeyApi;
|
||||
|
||||
nock(baseUrl)
|
||||
.persist()
|
||||
.defaultReplyHeaders({ 'Content-Type': 'application/json' })
|
||||
.post('/colls', {
|
||||
id: 'container1',
|
||||
partitionKey: {
|
||||
paths: ['/id'],
|
||||
kind: 'Hash',
|
||||
version: 2,
|
||||
},
|
||||
indexingPolicy: {
|
||||
indexingMode: 'consistent',
|
||||
automatic: true,
|
||||
includedPaths: [
|
||||
{
|
||||
path: '/*',
|
||||
},
|
||||
],
|
||||
excludedPaths: [],
|
||||
},
|
||||
})
|
||||
.matchHeader('x-ms-offer-throughput', '400')
|
||||
.reply(201, {
|
||||
id: 'container1',
|
||||
indexingPolicy: {
|
||||
indexingMode: 'consistent',
|
||||
automatic: true,
|
||||
includedPaths: [
|
||||
{
|
||||
path: '/*',
|
||||
},
|
||||
],
|
||||
excludedPaths: [
|
||||
{
|
||||
path: '/"_etag"/?',
|
||||
},
|
||||
],
|
||||
},
|
||||
partitionKey: {
|
||||
paths: ['/id'],
|
||||
kind: 'Hash',
|
||||
version: 2,
|
||||
},
|
||||
conflictResolutionPolicy: {
|
||||
mode: 'LastWriterWins',
|
||||
conflictResolutionPath: '/_ts',
|
||||
conflictResolutionProcedure: '',
|
||||
},
|
||||
geospatialConfig: {
|
||||
type: 'Geography',
|
||||
},
|
||||
_rid: '4PVyAOKH+8U=',
|
||||
_ts: 1742313299,
|
||||
_self: 'dbs/4PVyAA==/colls/4PVyAOKH+8U=/',
|
||||
_etag: '"00005702-0000-0300-0000-67d997530000"',
|
||||
_docs: 'docs/',
|
||||
_sprocs: 'sprocs/',
|
||||
_triggers: 'triggers/',
|
||||
_udfs: 'udfs/',
|
||||
_conflicts: 'conflicts/',
|
||||
});
|
||||
});
|
||||
|
||||
new NodeTestHarness().setupTests({
|
||||
credentials,
|
||||
workflowFiles: ['create.workflow.json'],
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,96 @@
|
||||
{
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.manualTrigger",
|
||||
"typeVersion": 1,
|
||||
"position": [0, 0],
|
||||
"id": "fabb9c53-ca91-4b11-84e3-3b172b10b83a",
|
||||
"name": "When clicking ‘Execute workflow’"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "create",
|
||||
"containerCreate": "container1",
|
||||
"additionalFields": {
|
||||
"partitionKey": "{\n\t\"paths\": [\n\t\t\"/id\"\n\t],\n\t\"kind\": \"Hash\",\n\t\"version\": 2\n}",
|
||||
"indexingPolicy": "{\n\t\"indexingMode\": \"consistent\",\n\t\"automatic\": true,\n\t\"includedPaths\": [\n\t\t{\n\t\t\t\"path\": \"/*\"\n\t\t}\n\t],\n\t\"excludedPaths\": []\n}",
|
||||
"offerThroughput": 400
|
||||
},
|
||||
"requestOptions": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.azureCosmosDb",
|
||||
"typeVersion": 1,
|
||||
"position": [220, 0],
|
||||
"id": "134e2bbd-937a-4ee8-9ad7-7a745cf0905f",
|
||||
"name": "Azure Cosmos DB",
|
||||
"credentials": {
|
||||
"microsoftAzureCosmosDbSharedKeyApi": {
|
||||
"id": "exampleId",
|
||||
"name": "Azure Cosmos DB account"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"When clicking ‘Execute workflow’": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Azure Cosmos DB",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Azure Cosmos DB": {
|
||||
"main": [[]]
|
||||
}
|
||||
},
|
||||
"pinData": {
|
||||
"Azure Cosmos DB": [
|
||||
{
|
||||
"json": {
|
||||
"id": "container1",
|
||||
"indexingPolicy": {
|
||||
"indexingMode": "consistent",
|
||||
"automatic": true,
|
||||
"includedPaths": [
|
||||
{
|
||||
"path": "/*"
|
||||
}
|
||||
],
|
||||
"excludedPaths": [
|
||||
{
|
||||
"path": "/\"_etag\"/?"
|
||||
}
|
||||
]
|
||||
},
|
||||
"partitionKey": {
|
||||
"paths": ["/id"],
|
||||
"kind": "Hash",
|
||||
"version": 2
|
||||
},
|
||||
"conflictResolutionPolicy": {
|
||||
"mode": "LastWriterWins",
|
||||
"conflictResolutionPath": "/_ts",
|
||||
"conflictResolutionProcedure": ""
|
||||
},
|
||||
"geospatialConfig": {
|
||||
"type": "Geography"
|
||||
},
|
||||
"_rid": "4PVyAOKH+8U=",
|
||||
"_ts": 1742313299,
|
||||
"_self": "dbs/4PVyAA==/colls/4PVyAOKH+8U=/",
|
||||
"_etag": "\"00005702-0000-0300-0000-67d997530000\"",
|
||||
"_docs": "docs/",
|
||||
"_sprocs": "sprocs/",
|
||||
"_triggers": "triggers/",
|
||||
"_udfs": "udfs/",
|
||||
"_conflicts": "conflicts/"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||
import nock from 'nock';
|
||||
|
||||
import { credentials } from '../credentials';
|
||||
|
||||
describe('Azure Cosmos DB - Delete Container', () => {
|
||||
beforeEach(() => {
|
||||
const { baseUrl } = credentials.microsoftAzureCosmosDbSharedKeyApi;
|
||||
|
||||
nock(baseUrl)
|
||||
.persist()
|
||||
.defaultReplyHeaders({ 'Content-Type': 'application/json' })
|
||||
.delete('/colls/container1')
|
||||
.reply(204, {});
|
||||
});
|
||||
|
||||
new NodeTestHarness().setupTests({
|
||||
credentials,
|
||||
workflowFiles: ['delete.workflow.json'],
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.manualTrigger",
|
||||
"typeVersion": 1,
|
||||
"position": [0, 0],
|
||||
"id": "fabb9c53-ca91-4b11-84e3-3b172b10b83a",
|
||||
"name": "When clicking ‘Execute workflow’"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "delete",
|
||||
"container": {
|
||||
"__rl": true,
|
||||
"value": "container1",
|
||||
"mode": "list",
|
||||
"cachedResultName": "container1"
|
||||
},
|
||||
"requestOptions": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.azureCosmosDb",
|
||||
"typeVersion": 1,
|
||||
"position": [220, 0],
|
||||
"id": "134e2bbd-937a-4ee8-9ad7-7a745cf0905f",
|
||||
"name": "Azure Cosmos DB",
|
||||
"credentials": {
|
||||
"microsoftAzureCosmosDbSharedKeyApi": {
|
||||
"id": "exampleId",
|
||||
"name": "Azure Cosmos DB account"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"When clicking ‘Execute workflow’": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Azure Cosmos DB",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Azure Cosmos DB": {
|
||||
"main": [[]]
|
||||
}
|
||||
},
|
||||
"pinData": {
|
||||
"Azure Cosmos DB": [
|
||||
{
|
||||
"json": {
|
||||
"deleted": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||
import nock from 'nock';
|
||||
|
||||
import { credentials } from '../credentials';
|
||||
|
||||
describe('Azure Cosmos DB - Get Container', () => {
|
||||
beforeEach(() => {
|
||||
const { baseUrl } = credentials.microsoftAzureCosmosDbSharedKeyApi;
|
||||
|
||||
nock(baseUrl)
|
||||
.persist()
|
||||
.defaultReplyHeaders({ 'Content-Type': 'application/json' })
|
||||
.get('/colls/container1')
|
||||
.reply(200, {
|
||||
id: 'container1',
|
||||
indexingPolicy: {
|
||||
indexingMode: 'consistent',
|
||||
automatic: true,
|
||||
includedPaths: [
|
||||
{
|
||||
path: '/*',
|
||||
},
|
||||
],
|
||||
excludedPaths: [
|
||||
{
|
||||
path: '/"_etag"/?',
|
||||
},
|
||||
],
|
||||
},
|
||||
partitionKey: {
|
||||
paths: ['/id'],
|
||||
kind: 'Hash',
|
||||
version: 2,
|
||||
},
|
||||
conflictResolutionPolicy: {
|
||||
mode: 'LastWriterWins',
|
||||
conflictResolutionPath: '/_ts',
|
||||
conflictResolutionProcedure: '',
|
||||
},
|
||||
geospatialConfig: {
|
||||
type: 'Geography',
|
||||
},
|
||||
_rid: '4PVyAMPuBto=',
|
||||
_ts: 1742298418,
|
||||
_self: 'dbs/4PVyAA==/colls/4PVyAMPuBto=/',
|
||||
_etag: '"00004402-0000-0300-0000-67d95d320000"',
|
||||
_docs: 'docs/',
|
||||
_sprocs: 'sprocs/',
|
||||
_triggers: 'triggers/',
|
||||
_udfs: 'udfs/',
|
||||
_conflicts: 'conflicts/',
|
||||
});
|
||||
});
|
||||
|
||||
new NodeTestHarness().setupTests({
|
||||
credentials,
|
||||
workflowFiles: ['get.workflow.json'],
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,87 @@
|
||||
{
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.manualTrigger",
|
||||
"typeVersion": 1,
|
||||
"position": [0, 0],
|
||||
"id": "fabb9c53-ca91-4b11-84e3-3b172b10b83a",
|
||||
"name": "When clicking ‘Execute workflow’"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "get",
|
||||
"container": {
|
||||
"__rl": true,
|
||||
"value": "container1",
|
||||
"mode": "list",
|
||||
"cachedResultName": "container1"
|
||||
},
|
||||
"requestOptions": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.azureCosmosDb",
|
||||
"typeVersion": 1,
|
||||
"position": [220, 0],
|
||||
"id": "134e2bbd-937a-4ee8-9ad7-7a745cf0905f",
|
||||
"name": "Azure Cosmos DB",
|
||||
"credentials": {
|
||||
"microsoftAzureCosmosDbSharedKeyApi": {
|
||||
"id": "exampleId",
|
||||
"name": "Azure Cosmos DB account"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"When clicking ‘Execute workflow’": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Azure Cosmos DB",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Azure Cosmos DB": {
|
||||
"main": [[]]
|
||||
}
|
||||
},
|
||||
"pinData": {
|
||||
"Azure Cosmos DB": [
|
||||
{
|
||||
"json": {
|
||||
"id": "container1",
|
||||
"indexingPolicy": {
|
||||
"indexingMode": "consistent",
|
||||
"automatic": true,
|
||||
"includedPaths": [
|
||||
{
|
||||
"path": "/*"
|
||||
}
|
||||
],
|
||||
"excludedPaths": [
|
||||
{
|
||||
"path": "/\"_etag\"/?"
|
||||
}
|
||||
]
|
||||
},
|
||||
"partitionKey": {
|
||||
"paths": ["/id"],
|
||||
"kind": "Hash",
|
||||
"version": 2
|
||||
},
|
||||
"conflictResolutionPolicy": {
|
||||
"mode": "LastWriterWins",
|
||||
"conflictResolutionPath": "/_ts",
|
||||
"conflictResolutionProcedure": ""
|
||||
},
|
||||
"geospatialConfig": {
|
||||
"type": "Geography"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||
import nock from 'nock';
|
||||
|
||||
import { credentials } from '../credentials';
|
||||
|
||||
describe('Azure Cosmos DB - Get All Containers', () => {
|
||||
beforeEach(() => {
|
||||
const { baseUrl } = credentials.microsoftAzureCosmosDbSharedKeyApi;
|
||||
|
||||
nock(baseUrl)
|
||||
.persist()
|
||||
.defaultReplyHeaders({ 'Content-Type': 'application/json' })
|
||||
.get('/colls')
|
||||
.reply(
|
||||
200,
|
||||
{
|
||||
_rid: '4PVyAA==',
|
||||
DocumentCollections: [
|
||||
{
|
||||
id: 'newOne3',
|
||||
indexingPolicy: {
|
||||
indexingMode: 'consistent',
|
||||
automatic: true,
|
||||
includedPaths: [{ path: '/*' }],
|
||||
excludedPaths: [{ path: '/"_etag"/?' }],
|
||||
fullTextIndexes: [],
|
||||
},
|
||||
partitionKey: {
|
||||
paths: ['/id'],
|
||||
kind: 'Hash',
|
||||
version: 2,
|
||||
},
|
||||
conflictResolutionPolicy: {
|
||||
mode: 'LastWriterWins',
|
||||
conflictResolutionPath: '/_ts',
|
||||
conflictResolutionProcedure: '',
|
||||
},
|
||||
geospatialConfig: { type: 'Geography' },
|
||||
},
|
||||
{
|
||||
id: 'newId',
|
||||
indexingPolicy: {
|
||||
indexingMode: 'consistent',
|
||||
automatic: true,
|
||||
includedPaths: [{ path: '/*' }],
|
||||
excludedPaths: [{ path: '/"_etag"/?' }],
|
||||
fullTextIndexes: [],
|
||||
},
|
||||
partitionKey: {
|
||||
paths: ['/id'],
|
||||
kind: 'Hash',
|
||||
version: 2,
|
||||
},
|
||||
uniqueKeyPolicy: {
|
||||
uniqueKeys: [],
|
||||
},
|
||||
conflictResolutionPolicy: {
|
||||
mode: 'LastWriterWins',
|
||||
conflictResolutionPath: '/_ts',
|
||||
conflictResolutionProcedure: '',
|
||||
},
|
||||
geospatialConfig: { type: 'Geography' },
|
||||
fullTextPolicy: {
|
||||
defaultLanguage: 'en-US',
|
||||
fullTextPaths: [],
|
||||
},
|
||||
computedProperties: [],
|
||||
},
|
||||
{
|
||||
id: 'ContainerWithNameAsKey',
|
||||
indexingPolicy: {
|
||||
indexingMode: 'consistent',
|
||||
automatic: true,
|
||||
includedPaths: [{ path: '/*' }],
|
||||
excludedPaths: [{ path: '/"_etag"/?' }],
|
||||
fullTextIndexes: [],
|
||||
},
|
||||
partitionKey: {
|
||||
paths: ['/Name'],
|
||||
kind: 'Hash',
|
||||
version: 2,
|
||||
},
|
||||
uniqueKeyPolicy: {
|
||||
uniqueKeys: [],
|
||||
},
|
||||
conflictResolutionPolicy: {
|
||||
mode: 'LastWriterWins',
|
||||
conflictResolutionPath: '/_ts',
|
||||
conflictResolutionProcedure: '',
|
||||
},
|
||||
geospatialConfig: { type: 'Geography' },
|
||||
fullTextPolicy: {
|
||||
defaultLanguage: 'en-US',
|
||||
fullTextPaths: [],
|
||||
},
|
||||
computedProperties: [],
|
||||
},
|
||||
{
|
||||
id: 'ContainerWithPhoneNrAsKey',
|
||||
indexingPolicy: {
|
||||
indexingMode: 'consistent',
|
||||
automatic: true,
|
||||
includedPaths: [{ path: '/*' }],
|
||||
excludedPaths: [{ path: '/"_etag"/?' }],
|
||||
fullTextIndexes: [],
|
||||
},
|
||||
partitionKey: {
|
||||
paths: ['/PhoneNumber'],
|
||||
kind: 'Hash',
|
||||
version: 2,
|
||||
},
|
||||
conflictResolutionPolicy: {
|
||||
mode: 'LastWriterWins',
|
||||
conflictResolutionPath: '/_ts',
|
||||
conflictResolutionProcedure: '',
|
||||
},
|
||||
geospatialConfig: { type: 'Geography' },
|
||||
},
|
||||
],
|
||||
_count: 4,
|
||||
},
|
||||
{
|
||||
'x-ms-continuation': '4PVyAKoVaBQ=',
|
||||
},
|
||||
)
|
||||
.get('/colls')
|
||||
.matchHeader('x-ms-continuation', '4PVyAKoVaBQ=')
|
||||
.reply(200, {
|
||||
_rid: '4PVyAA==',
|
||||
DocumentCollections: [
|
||||
{
|
||||
id: 'ContainerWithPhoneNrAsKey',
|
||||
indexingPolicy: {
|
||||
indexingMode: 'consistent',
|
||||
automatic: true,
|
||||
includedPaths: [{ path: '/*' }],
|
||||
excludedPaths: [{ path: '/"_etag"/?' }],
|
||||
fullTextIndexes: [],
|
||||
},
|
||||
partitionKey: {
|
||||
paths: ['/PhoneNumber'],
|
||||
kind: 'Hash',
|
||||
version: 2,
|
||||
},
|
||||
conflictResolutionPolicy: {
|
||||
mode: 'LastWriterWins',
|
||||
conflictResolutionPath: '/_ts',
|
||||
conflictResolutionProcedure: '',
|
||||
},
|
||||
geospatialConfig: { type: 'Geography' },
|
||||
},
|
||||
],
|
||||
_count: 1,
|
||||
});
|
||||
});
|
||||
|
||||
new NodeTestHarness().setupTests({
|
||||
credentials,
|
||||
workflowFiles: ['getAll.workflow.json'],
|
||||
});
|
||||
});
|
||||
+196
@@ -0,0 +1,196 @@
|
||||
{
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.manualTrigger",
|
||||
"typeVersion": 1,
|
||||
"position": [-180, -520],
|
||||
"id": "8218dacc-3b5f-460a-a773-817faf012ba9",
|
||||
"name": "When clicking ‘Execute workflow’"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"requestOptions": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.azureCosmosDb",
|
||||
"typeVersion": 1,
|
||||
"position": [20, -520],
|
||||
"id": "4568cad5-4e55-4370-9fbe-7f19e03faa67",
|
||||
"name": "getAllContainers",
|
||||
"credentials": {
|
||||
"microsoftAzureCosmosDbSharedKeyApi": {
|
||||
"id": "iTUZNEdLdLW0RpF9",
|
||||
"name": "Azure Cosmos DB account "
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"When clicking ‘Execute workflow’": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "getAllContainers",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"getAllContainers": {
|
||||
"main": [[]]
|
||||
}
|
||||
},
|
||||
"pinData": {
|
||||
"getAllContainers": [
|
||||
{
|
||||
"json": {
|
||||
"id": "newOne3",
|
||||
"indexingPolicy": {
|
||||
"indexingMode": "consistent",
|
||||
"automatic": true,
|
||||
"includedPaths": [
|
||||
{
|
||||
"path": "/*"
|
||||
}
|
||||
],
|
||||
"excludedPaths": [
|
||||
{
|
||||
"path": "/\"_etag\"/?"
|
||||
}
|
||||
],
|
||||
"fullTextIndexes": []
|
||||
},
|
||||
"partitionKey": {
|
||||
"paths": ["/id"],
|
||||
"kind": "Hash",
|
||||
"version": 2
|
||||
},
|
||||
"conflictResolutionPolicy": {
|
||||
"mode": "LastWriterWins",
|
||||
"conflictResolutionPath": "/_ts",
|
||||
"conflictResolutionProcedure": ""
|
||||
},
|
||||
"geospatialConfig": {
|
||||
"type": "Geography"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"json": {
|
||||
"id": "newId",
|
||||
"indexingPolicy": {
|
||||
"indexingMode": "consistent",
|
||||
"automatic": true,
|
||||
"includedPaths": [
|
||||
{
|
||||
"path": "/*"
|
||||
}
|
||||
],
|
||||
"excludedPaths": [
|
||||
{
|
||||
"path": "/\"_etag\"/?"
|
||||
}
|
||||
],
|
||||
"fullTextIndexes": []
|
||||
},
|
||||
"partitionKey": {
|
||||
"paths": ["/id"],
|
||||
"kind": "Hash",
|
||||
"version": 2
|
||||
},
|
||||
"uniqueKeyPolicy": {
|
||||
"uniqueKeys": []
|
||||
},
|
||||
"conflictResolutionPolicy": {
|
||||
"mode": "LastWriterWins",
|
||||
"conflictResolutionPath": "/_ts",
|
||||
"conflictResolutionProcedure": ""
|
||||
},
|
||||
"geospatialConfig": {
|
||||
"type": "Geography"
|
||||
},
|
||||
"fullTextPolicy": {
|
||||
"defaultLanguage": "en-US",
|
||||
"fullTextPaths": []
|
||||
},
|
||||
"computedProperties": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"json": {
|
||||
"id": "ContainerWithNameAsKey",
|
||||
"indexingPolicy": {
|
||||
"indexingMode": "consistent",
|
||||
"automatic": true,
|
||||
"includedPaths": [
|
||||
{
|
||||
"path": "/*"
|
||||
}
|
||||
],
|
||||
"excludedPaths": [
|
||||
{
|
||||
"path": "/\"_etag\"/?"
|
||||
}
|
||||
],
|
||||
"fullTextIndexes": []
|
||||
},
|
||||
"partitionKey": {
|
||||
"paths": ["/Name"],
|
||||
"kind": "Hash",
|
||||
"version": 2
|
||||
},
|
||||
"uniqueKeyPolicy": {
|
||||
"uniqueKeys": []
|
||||
},
|
||||
"conflictResolutionPolicy": {
|
||||
"mode": "LastWriterWins",
|
||||
"conflictResolutionPath": "/_ts",
|
||||
"conflictResolutionProcedure": ""
|
||||
},
|
||||
"geospatialConfig": {
|
||||
"type": "Geography"
|
||||
},
|
||||
"fullTextPolicy": {
|
||||
"defaultLanguage": "en-US",
|
||||
"fullTextPaths": []
|
||||
},
|
||||
"computedProperties": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"json": {
|
||||
"id": "ContainerWithPhoneNrAsKey",
|
||||
"indexingPolicy": {
|
||||
"indexingMode": "consistent",
|
||||
"automatic": true,
|
||||
"includedPaths": [
|
||||
{
|
||||
"path": "/*"
|
||||
}
|
||||
],
|
||||
"excludedPaths": [
|
||||
{
|
||||
"path": "/\"_etag\"/?"
|
||||
}
|
||||
],
|
||||
"fullTextIndexes": []
|
||||
},
|
||||
"partitionKey": {
|
||||
"paths": ["/PhoneNumber"],
|
||||
"kind": "Hash",
|
||||
"version": 2
|
||||
},
|
||||
"conflictResolutionPolicy": {
|
||||
"mode": "LastWriterWins",
|
||||
"conflictResolutionPath": "/_ts",
|
||||
"conflictResolutionProcedure": ""
|
||||
},
|
||||
"geospatialConfig": {
|
||||
"type": "Geography"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user