Description
To https://docs.couchbase.com/server/current/n1ql/n1ql-language-reference/infer.html add a note similar to:
NOTE: (8.0+)
By default the attribute "~meta" is included in the output with a single embedded property "id" describing the keys associated with the schema. When using the flags option, control the INFER analysis, the flag include_key must be explicitly specified for this attribute to be included.
e.g.
INFER `travel-sample`.inventory.airline;
|
...
|
"~meta": {
|
"#docs": 187,
|
"%docs": 100,
|
"properties": {
|
"id": {
|
"#docs": 187,
|
"%docs": 100,
|
"samples": [
|
"airline_18178",
|
"airline_19774",
|
"airline_281",
|
"airline_3568",
|
"airline_5160"
|
],
|
"type": "string"
|
}
|
},
|
"samples": [
|
{
|
"id": "airline_18178"
|
},
|
{
|
"id": "airline_19774"
|
},
|
{
|
"id": "airline_281"
|
},
|
{
|
"id": "airline_3568"
|
},
|
{
|
"id": "airline_5160"
|
}
|
],
|
"type": "object"
|
}
|
...
|