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
See parent story #214
Model Order has userId as its partition key.
Order
userId
Support providing the partitionKey in query, like Order.find({where: {somefield: 'somevalue', userId: 'auser',}})
partitionKey
Order.find({where: {somefield: 'somevalue', userId: 'auser',}})
Cloudant.prototype.find()
db.partitionedFind('auser', queryWithPartitionKeyExcluded)
options
The text was updated successfully, but these errors were encountered:
closing as PR merged
Sorry, something went wrong.
jannyHou
No branches or pull requests
See parent story #214
Acceptance Criteria
Model
Order
hasuserId
as its partition key.Support providing the
partitionKey
in query, likeOrder.find({where: {somefield: 'somevalue', userId: 'auser',}})
Cloudant.prototype.find()
, ifpartitionKey
is detected in the where clause, then invokedb.partitionedFind('auser', queryWithPartitionKeyExcluded)
partitionKey
fromoptions
should override the one from where clause.The text was updated successfully, but these errors were encountered: