Skip to content

Commit 4ebd3ff

Browse files
committed
format
1 parent 682d7a7 commit 4ebd3ff

File tree

8 files changed

+24
-24
lines changed

8 files changed

+24
-24
lines changed

docs/reference/globals.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,17 @@ Once declared, `Product` will be available as `tables.Product` (or `databases.da
4949
const ProductTable = tables.Product; // Same as databases.data.Product
5050

5151
// Create a new record (`id` is automatically generated when using `.create()`)
52-
const created = await ProductTable.create({ name: 'Shirt', price: 9.50 });
52+
const created = await ProductTable.create({ name: 'Shirt', price: 9.5 });
5353

5454
// Retrieve by primary key
5555
const record = await ProductTable.get(created.id);
5656

5757
// Insert or replace by ID
58-
await ProductTable.put(created.id, { ...record, price: 7.50 });
58+
await ProductTable.put(created.id, { ...record, price: 7.5 });
5959

6060
// Query for all products with a `price` less than `8.00`
6161
const query = {
62-
conditions: [{ attribute: 'price', comparator: 'less_than', value: 8.00 }],
62+
conditions: [{ attribute: 'price', comparator: 'less_than', value: 8.0 }],
6363
};
6464

6565
for await (const record of ProductTable.search(query)) {

docs/reference/resources/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,17 +107,17 @@ Once declared, `Product` will be available as `tables.Product` (or `databases.da
107107
const ProductTable = tables.Product; // Same as databases.data.Product
108108

109109
// Create a new record (`id` is automatically generated when using `.create()`)
110-
const created = await ProductTable.create({ name: 'Shirt', price: 9.50 });
110+
const created = await ProductTable.create({ name: 'Shirt', price: 9.5 });
111111

112112
// Retrieve by primary key
113113
const record = await ProductTable.get(created.id);
114114

115115
// Insert or replace by ID
116-
await ProductTable.put(created.id, { ...record, price: 7.50 });
116+
await ProductTable.put(created.id, { ...record, price: 7.5 });
117117

118118
// Query for all products with a `price` less than `8.00`
119119
const query = {
120-
conditions: [{ attribute: 'price', comparator: 'less_than', value: 8.00 }],
120+
conditions: [{ attribute: 'price', comparator: 'less_than', value: 8.0 }],
121121
};
122122

123123
for await (const record of ProductTable.search(query)) {

versioned_docs/version-4.5/reference/globals.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,17 @@ Once declared, `Product` will be available as `tables.Product` (or `databases.da
4949
const ProductTable = tables.Product; // Same as databases.data.Product
5050

5151
// Create a new record (`id` is automatically generated when using `.create()`)
52-
const created = await ProductTable.create({ name: 'Shirt', price: 9.50 });
52+
const created = await ProductTable.create({ name: 'Shirt', price: 9.5 });
5353

5454
// Retrieve by primary key
5555
const record = await ProductTable.get(created.id);
5656

5757
// Insert or replace by ID
58-
await ProductTable.put(created.id, { ...record, price: 7.50 });
58+
await ProductTable.put(created.id, { ...record, price: 7.5 });
5959

6060
// Query for all products with a `price` less than `8.00`
6161
const query = {
62-
conditions: [{ attribute: 'price', comparator: 'less_than', value: 8.00 }],
62+
conditions: [{ attribute: 'price', comparator: 'less_than', value: 8.0 }],
6363
};
6464

6565
for await (const record of ProductTable.search(query)) {

versioned_docs/version-4.5/reference/resource.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,17 +106,17 @@ Once declared, `Product` will be available as `tables.Product` (or `databases.da
106106
const ProductTable = tables.Product; // Same as databases.data.Product
107107

108108
// Create a new record (`id` is automatically generated when using `.create()`)
109-
const created = await ProductTable.create({ name: 'Shirt', price: 9.50 });
109+
const created = await ProductTable.create({ name: 'Shirt', price: 9.5 });
110110

111111
// Retrieve by primary key
112112
const record = await ProductTable.get(created.id);
113113

114114
// Insert or replace by ID
115-
await ProductTable.put(created.id, { ...record, price: 7.50 });
115+
await ProductTable.put(created.id, { ...record, price: 7.5 });
116116

117117
// Query for all products with a `price` less than `8.00`
118118
const query = {
119-
conditions: [{ attribute: 'price', comparator: 'less_than', value: 8.00 }],
119+
conditions: [{ attribute: 'price', comparator: 'less_than', value: 8.0 }],
120120
};
121121

122122
for await (const record of ProductTable.search(query)) {

versioned_docs/version-4.6/reference/globals.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,17 @@ Once declared, `Product` will be available as `tables.Product` (or `databases.da
4949
const ProductTable = tables.Product; // Same as databases.data.Product
5050

5151
// Create a new record (`id` is automatically generated when using `.create()`)
52-
const created = await ProductTable.create({ name: 'Shirt', price: 9.50 });
52+
const created = await ProductTable.create({ name: 'Shirt', price: 9.5 });
5353

5454
// Retrieve by primary key
5555
const record = await ProductTable.get(created.id);
5656

5757
// Insert or replace by ID
58-
await ProductTable.put(created.id, { ...record, price: 7.50 });
58+
await ProductTable.put(created.id, { ...record, price: 7.5 });
5959

6060
// Query for all products with a `price` less than `8.00`
6161
const query = {
62-
conditions: [{ attribute: 'price', comparator: 'less_than', value: 8.00 }],
62+
conditions: [{ attribute: 'price', comparator: 'less_than', value: 8.0 }],
6363
};
6464

6565
for await (const record of ProductTable.search(query)) {

versioned_docs/version-4.6/reference/resources/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,17 +107,17 @@ Once declared, `Product` will be available as `tables.Product` (or `databases.da
107107
const ProductTable = tables.Product; // Same as databases.data.Product
108108

109109
// Create a new record (`id` is automatically generated when using `.create()`)
110-
const created = await ProductTable.create({ name: 'Shirt', price: 9.50 });
110+
const created = await ProductTable.create({ name: 'Shirt', price: 9.5 });
111111

112112
// Retrieve by primary key
113113
const record = await ProductTable.get(created.id);
114114

115115
// Insert or replace by ID
116-
await ProductTable.put(created.id, { ...record, price: 7.50 });
116+
await ProductTable.put(created.id, { ...record, price: 7.5 });
117117

118118
// Query for all products with a `price` less than `8.00`
119119
const query = {
120-
conditions: [{ attribute: 'price', comparator: 'less_than', value: 8.00 }],
120+
conditions: [{ attribute: 'price', comparator: 'less_than', value: 8.0 }],
121121
};
122122

123123
for await (const record of ProductTable.search(query)) {

versioned_docs/version-4.7/reference/globals.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,17 @@ Once declared, `Product` will be available as `tables.Product` (or `databases.da
4949
const ProductTable = tables.Product; // Same as databases.data.Product
5050

5151
// Create a new record (`id` is automatically generated when using `.create()`)
52-
const created = await ProductTable.create({ name: 'Shirt', price: 9.50 });
52+
const created = await ProductTable.create({ name: 'Shirt', price: 9.5 });
5353

5454
// Retrieve by primary key
5555
const record = await ProductTable.get(created.id);
5656

5757
// Insert or replace by ID
58-
await ProductTable.put(created.id, { ...record, price: 7.50 });
58+
await ProductTable.put(created.id, { ...record, price: 7.5 });
5959

6060
// Query for all products with a `price` less than `8.00`
6161
const query = {
62-
conditions: [{ attribute: 'price', comparator: 'less_than', value: 8.00 }],
62+
conditions: [{ attribute: 'price', comparator: 'less_than', value: 8.0 }],
6363
};
6464

6565
for await (const record of ProductTable.search(query)) {

versioned_docs/version-4.7/reference/resources/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,17 +107,17 @@ Once declared, `Product` will be available as `tables.Product` (or `databases.da
107107
const ProductTable = tables.Product; // Same as databases.data.Product
108108

109109
// Create a new record (`id` is automatically generated when using `.create()`)
110-
const created = await ProductTable.create({ name: 'Shirt', price: 9.50 });
110+
const created = await ProductTable.create({ name: 'Shirt', price: 9.5 });
111111

112112
// Retrieve by primary key
113113
const record = await ProductTable.get(created.id);
114114

115115
// Insert or replace by ID
116-
await ProductTable.put(created.id, { ...record, price: 7.50 });
116+
await ProductTable.put(created.id, { ...record, price: 7.5 });
117117

118118
// Query for all products with a `price` less than `8.00`
119119
const query = {
120-
conditions: [{ attribute: 'price', comparator: 'less_than', value: 8.00 }],
120+
conditions: [{ attribute: 'price', comparator: 'less_than', value: 8.0 }],
121121
};
122122

123123
for await (const record of ProductTable.search(query)) {

0 commit comments

Comments
 (0)