Create a collection
Before we can add objects to Answers, we need to first create a Collection
- we give it a name, then Answers will automatically detect your properties and data types based on the objects you index.
Available data types
Data Type | Example |
---|---|
string | string |
list of strings | [“string one”, “string two”] |
object | {“child”: “object!"} |
list of objects | [{“child”: “object!"}, {“child”: “object too!"} ] |
int64 | 1 |
list of int64 | [1, 2] |
boolean | true/false |
list of booleans | [true, false] |
float64 | 1.0 |
list of float64 | [1.0, 2.0] |
Related articles
Answers > Collections
Objects with similar fields are grouped into Collections in Answers, analogous to tables in relational databases.
Collections > Get a collection
Here is a one-sentence summary of the provided content:
Retrieve the details of a specified collection using its name.
Collections > Update a collection
Objects in Answers are grouped into collections, similar to tables in a relational database.
Answers > Objects
Objects are records indexed in Answers, each containing an optional id field used as the document identifier or assigned an auto-generated one by Answers.