You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Impact 2 (Since our feature can launch without this endpoint)
Complexity 2 (Probably 100-200 LoC including tests; but logic is fairly straightforward and design patterns already established)
Our GraphQL server currently supports 4 API endpoints:
query organization to fetch a single organization given its orgId
query organizations to search for one or more organizations that match a certain displayName or have a set of associatedAreaIds.
mutation updateOrganization to update an organization
mutation addOrganization to add an organization.
This task is to add mutation deleteOrganization. The wider intent is so that from our internal basecamp tool, admins can delete organizations using this endpoint rather than having to reach into our Mongo database and run commands. That's dangerous and prone to error.
You should be able to refer to #254. The codepaths would resemble mutation updateOrganization and mutation addOrganization quite closely. One way to think about it would be that there are three layers to implement:
The outermost GraphQL layer that receives API calls.
The middle Mongoose datastore objects that expose commands to the GraphQL resolvers.
The inner Mongoose models/schemas that represent how data is stored in the MongoDB.
The text was updated successfully, but these errors were encountered:
Impact 2 (Since our feature can launch without this endpoint)
Complexity 2 (Probably 100-200 LoC including tests; but logic is fairly straightforward and design patterns already established)
Our GraphQL server currently supports 4 API endpoints:
query organization
to fetch a single organization given itsorgId
query organizations
to search for one or more organizations that match a certaindisplayName
or have a set ofassociatedAreaIds
.mutation updateOrganization
to update an organizationmutation addOrganization
to add an organization.This task is to add
mutation deleteOrganization
. The wider intent is so that from our internal basecamp tool, admins can delete organizations using this endpoint rather than having to reach into our Mongo database and run commands. That's dangerous and prone to error.You should be able to refer to #254. The codepaths would resemble
mutation updateOrganization
andmutation addOrganization
quite closely. One way to think about it would be that there are three layers to implement:The text was updated successfully, but these errors were encountered: