|
1 |
| -| Schema | Description | Data Type | Mutable | [Queryable](/rest/api/schema#queryable) | Of A | |
2 |
| -| ---------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | --------- | --------- | |
3 |
| -| [Entity](/rest/api/Entity) | single _unique_ object | [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) | ✅ | ✅ | | |
4 |
| -| [Object](/rest/api/Object) | statically known keys | [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) | 🛑 | 🛑 | | |
5 |
| -| [Array](/rest/api/Array) | lists of any size | [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array) | 🛑 | 🛑 | | |
6 |
| -| [Values](/rest/api/Values) | maps of any size | [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) | 🛑 | 🛑 | | |
7 |
| -| [All](/rest/api/All) | list of all entities of a kind | [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array) | 🛑 | ✅ | | |
8 |
| -| [Collection](/rest/api/Collection) | enables adding new items | [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) or [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array) | ✅ | ✅ | | |
9 |
| -| [Query](/rest/api/Query) | memoized custom transforms | any | ✅/🛑 | ✅ | Queryable | |
10 |
| -| [Union](/rest/api/Union) | one of many different types (`A \| B`) | Polymorphic [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) | ✅ | ✅ | Entity | |
11 |
| -| [Invalidate](/rest/api/Invalidate) | [remove an entity](../concepts/expiry-policy.md#any-endpoint-with-an-entity) | [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) | ✅ | 🛑 | Entity | |
| 1 | +<table> |
| 2 | +<thead> |
| 3 | +<tr> |
| 4 | +<th>Data Type</th> |
| 5 | +<th>Mutable</th> |
| 6 | +<th>Schema</th> |
| 7 | +<th>Description</th> |
| 8 | +<th>[Queryable](/rest/api/schema#queryable)</th> |
| 9 | +</tr> |
| 10 | +</thead> |
| 11 | +<tbody><tr> |
| 12 | +<td rowSpan={4}><a href="https://en.wikipedia.org/wiki/Object_(computer_science)">Object</a></td> |
| 13 | +<td align="center">✅</td> |
| 14 | +<td>[Entity](/rest/api/Entity)</td> |
| 15 | +<td>single <em>unique</em> object</td> |
| 16 | +<td align="center">✅</td> |
| 17 | +</tr> |
| 18 | +<tr> |
| 19 | +<td align="center">✅</td> |
| 20 | +<td>[Union(Entity)](/rest/api/Union)</td> |
| 21 | +<td>polymorphic objects (<code>A | B</code>)</td> |
| 22 | +<td align="center">✅</td> |
| 23 | +</tr> |
| 24 | +<tr> |
| 25 | +<td align="center">🛑</td> |
| 26 | +<td>[Object](/rest/api/Object)</td> |
| 27 | +<td>statically known keys</td> |
| 28 | +<td align="center">🛑</td> |
| 29 | +</tr> |
| 30 | +<tr> |
| 31 | +<td align="center"></td> |
| 32 | +<td>[Invalidate(Entity)](/rest/api/Invalidate)</td> |
| 33 | +<td>[delete an entity](../concepts/expiry-policy.md#invalidate-entity)</td> |
| 34 | +<td align="center">🛑</td> |
| 35 | +</tr> |
| 36 | +<tr> |
| 37 | +<td rowSpan={3}><a href="https://en.wikipedia.org/wiki/List_(abstract_data_type)">List</a></td> |
| 38 | +<td align="center">✅</td> |
| 39 | +<td>[Collection(Array)](/rest/api/Collection)</td> |
| 40 | +<td>growable lists</td> |
| 41 | +<td align="center">✅</td> |
| 42 | +</tr> |
| 43 | +<tr> |
| 44 | +<td align="center">🛑</td> |
| 45 | +<td>[Array](/rest/api/Array)</td> |
| 46 | +<td>immutable lists</td> |
| 47 | +<td align="center">🛑</td> |
| 48 | +</tr> |
| 49 | +<tr> |
| 50 | +<td align="center">✅</td> |
| 51 | +<td>[All](/rest/api/All)</td> |
| 52 | +<td>list of all entities of a kind</td> |
| 53 | +<td align="center">✅</td> |
| 54 | +</tr> |
| 55 | +<tr> |
| 56 | +<td rowSpan={2}><a href="https://en.wikipedia.org/wiki/Associative_array">Map</a></td> |
| 57 | +<td align="center">✅</td> |
| 58 | +<td>[Collection(Values)](/rest/api/Collection)</td> |
| 59 | +<td>growable maps</td> |
| 60 | +<td align="center">✅</td> |
| 61 | +</tr> |
| 62 | +<tr> |
| 63 | +<td align="center">🛑</td> |
| 64 | +<td>[Values](/rest/api/Values)</td> |
| 65 | +<td>immutable maps</td> |
| 66 | +<td align="center">🛑</td> |
| 67 | +</tr> |
| 68 | +<tr> |
| 69 | +<td>any</td> |
| 70 | +<td align="center"></td> |
| 71 | +<td>[Query(Queryable)](/rest/api/Query)</td> |
| 72 | +<td>memoized custom transforms</td> |
| 73 | +<td align="center">✅</td> |
| 74 | +</tr> |
| 75 | +</tbody></table> |
0 commit comments