We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Join BSON by network tag and pubkey and update the new entries in the same BSON.
filter := bson.M{ "tag": req.Tag, "network": req.Network, "pubkey": req.Pubkey, } update := bson.M{ "$push": bson.M{ "entries": bson.M{ "payload": req.DecodedPayload.Payload, "signature": req.Signature, }, }, } options := options.Update().SetUpsert(true) _, err := dbCollection.UpdateOne(context.TODO(), filter, update, options) if err != nil { // Handle error }
Do not store in db decoded payload
The text was updated successfully, but these errors were encountered:
pablomendezroyo
Successfully merging a pull request may close this issue.
Join BSON by network tag and pubkey and update the new entries in the same BSON.
Do not store in db decoded payload
The text was updated successfully, but these errors were encountered: