Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "_id" : ObjectId("5cec8b2aa1d64e0ff08d894a"),
- "userId" : ObjectId("5cec8b2aa1d64e0ff08d8947"),
- "providers" : [
- "1689736266",
- "1598763690",
- "1528069614",
- "1831364272",
- "1548463045",
- "1245301159",
- "1386616399",
- "1790775971",
- "1629462130",
- "1992169783"
- ],
- "countByType" : {
- "doctors" : 6,
- "labs" : 0,
- "hospitals" : 0,
- "imagingCenters" : 0,
- "other" : 4
- }
- }
- let providerDetails = await esHelper.getProviderById(res.practitioner.npiId);
- let updateProviderId = await userProviderCollection.update(
- regUserId, {
- $addToSet: {
- providers: res.practitioner.npiId
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement