Modify a View
To modify a view, you can either:
- Drop and recreate the view.
- Use the
collMod command.
Example
Consider the following view named lowStock:
Drop and Recreate the View
The following commands modify lowStock by dropping and
recreating the view:
Use the collMod Command
Alternatively, you can use the collMod command to modify the view: