1

I have a CouchDb table for cookies with ids and access tokens. I want to create a new cookie for a given token, only if that token doesn't already exist in our table. How could I do that in CouchDb with cradle for nodejs?

mabounassif
  • 2,311
  • 6
  • 29
  • 46

1 Answers1

1

I read the cookie first and if it was there i would merge otherwise I would create a new one.

mabounassif
  • 2,311
  • 6
  • 29
  • 46