![JAR search and dependency download from the Maven repository](/logo.png)
scripts.1.9.0.2-remove-old-attributes.js Maven / Gradle / Ivy
// remove group type
print("\n\n remove type attribute for all groups");
db.groups.update(
{},
{$unset: {type: ""}},
{multi: true}
);
print("Done!");
print("\n\nRemove old type in Membership collection");
db.memberships.update(
{},
{$unset: {type: ""}},
{multi: true}
);
print("Done!");
print("\n\nRemove old group in API collection");
db.apis.update(
{},
{$unset: {group: ""}},
{multi: true}
);
print("Done!");
print("\n\nRemove old group in Application collection");
db.applications.update(
{},
{$unset: {group: ""}},
{multi: true}
);
print("Done!");
© 2015 - 2025 Weber Informatics LLC | Privacy Policy