meteor / meteor/validated-method

How to call method with callPromise with applyOptions?

Open
#89 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
193
Forks
29
PR merge metrics
No merged PRs in 30d

Description

How can we use method with callPromise applyOption not to retry

```
applyOptions: {
noRetry: true, // <-- Tell Meteor not to retry
},
```
this is method on server
```
export const journal = new ValidatedMethod({
name: 'app.journa',
mixins: [CallPromiseMixin],
applyOptions: {
noRetry: true, // <-- Tell Meteor not to retry
},
validate: null,
async run() {
// code here
}
})
```
this is client call

```
journal.callPromise()
.then(res => {
console.log('res', res)
}).catch(err => {
console.log('err', err)
})
},
```
notRetry working with callPromise or Meteor.apply

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the CallPromiseMixin and ValidatedMethod applyOptions entry points, then compare journal.callPromise() with Meteor.apply using the supplied example. Reproduce the noRetry case and verify whether the option reaches the call; done means the intended no-retry behavior is confirmed or the correct usage is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.