This message was deleted.
# community-help
s
This message was deleted.
k
Related question: Is there a way for me to see the actual inferred schema for a collection, with the literal fields that a document is indexing, with the types?
k
👋
the most generic field definition takes precedence
This could have been worded better. If there is an explicit definition for a nested field, we will always use that for type checking. However, if there is also a parent object field, then, in addition we will also index all other fields in that object.
👍 1
Is there a way for me to see the actual inferred schema for a collection,
Yes, hit the
/collections/:name
end-point it will return the schema that contains both inferred and specified fields.
👍 1
k
Makes sense that it is talking explicitly about nested objects. I am just trying to enable something abstract so having access to the inferred schema is great. thanks!
k
The same thing applies to dynamic field names (those that contains
.*
) as well. We will use an explicit field definition first.
k
Great to know, thanks!