is it possible to pre-define fields inside an `obj...
# community-help
m
is it possible to pre-define fields inside an
object[]
in my schema? e.g. i want to say
Copy code
{ name: "skills", optional: true, type: "object[]" },
    { name: "skills.name", optional: true, type: "string" },
but i don't think it's having the desired effect
m
hm
so name should be string[]?
even though each object has only a scalar string for name?
j
Yup, because skills is an array of objects. So
skills.name
will be an array of all the values for skills.name across all objects in the skills array
m
okay trying that out. thanks
👍 1