Skip to content

Instantly share code, notes, and snippets.

@pinalbhatt
Created March 17, 2021 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pinalbhatt/3b4a17d3341a945f08f93a3ac2e9ece3 to your computer and use it in GitHub Desktop.
Save pinalbhatt/3b4a17d3341a945f08f93a3ac2e9ece3 to your computer and use it in GitHub Desktop.
IAP-MongoDB
db.getCollection("products").find({
app: 'ios',
market: 'pt-BR',
programId: '32135'
});
db.getCollection("products").findOneAndUpdate({
app: 'ios',
market: 'pt-BR',
programId: '32135'
}, {
$set: { rbProgramId: '32135' }
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment