Skip to content
New issue

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

Multiplier for default optional value #11

Closed
ShockiTV opened this issue Apr 27, 2018 · 1 comment
Closed

Multiplier for default optional value #11

ShockiTV opened this issue Apr 27, 2018 · 1 comment

Comments

@ShockiTV
Copy link

Hello,

is there any way how to tell that if first variable is not provided, it would default to 50, so multiplier should be 50 even without providing it ?

@pa-bru
Copy link
Owner

pa-bru commented Apr 27, 2018

Hello,

Is that possible for you to rather define a default value on the first variable like that ?

users(first: Int = 50): [User] @cost(multipliers:["first"])

@pa-bru pa-bru closed this as completed Jul 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants