Find Jobs
Hire Freelancers

MongoDB Schema and pymongo

$10-30 USD

Completed
Posted over 3 years ago

$10-30 USD

Paid on delivery
I need to keep couple of strings inside mongoDB. I have temporary schema of document in attachment. ([login to view URL]) Need to prepare 2 python methods which will be get set of arguments (instance_id, name and guid) and create or update records inside mongo collection. instance_id = unique instance identifier (string) guid = id of document (string) name = name of instance (string) documents must be filtered thru guid, this is "ObjectId()" Example: def set_instance(self, instance_id, guid,instance_name): key = self.gen_code() #My code self.col.update_one(filter={"_id": ObjectId(guid)}, update={"$push": {"instances": { instance_id: { "instance_name": , "key": key } }}}) First function must create new records in document. Second function must update existing record (instance_id) in document. Schema could be tune if needed but only for "instances" If you want to modify "instances" from object to array for example, YW. At the end I want to receive 2 functional methods for set and update and good schema of document.
Project ID: 27237703

About the project

1 proposal
Remote project
Active 4 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hi I think , I can help you in this project, I owe pretty much expertise in this area Thank You Very Much
$20 USD in 7 days
5.0 (1 review)
0.6
0.6

About the client

Flag of UNITED STATES
Sarasota, United States
4.8
1
Payment method verified
Member since Jul 23, 2017

Client Verification

Other jobs from this client

Linux module on c/c++
$30-250 USD
Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.