how to index a field that holds a subdocument?

32 Views Asked by At

schema:

{ A: { X: "string", Y: "string", Z: "string" } }

Is it possible to index A and have this index used when querying for A.X, A.Y, or A.Z?

0

There are 0 best solutions below