My user schema has field myskills which is an array of category ids.
myskills: [{ type: Schema.Types.ObjectId, ref: "categories" }],