subcollection is prefixed by $ (optional)