Allow setting the complexity value (cost) of a field to 0 #6065
Closed
sgabler
started this conversation in
Feature Request
Replies: 1 comment
-
This is now implemented |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We will use the operation complexity (cost) as a measure for calculating the usage of a user per month, which we will then bill.
Some fields we offer in our schema are just wrappers that don't really cost us anything to calculate, and thus should not be billable.
Example:
In this example, the fields
data
andacInverterYield
are just wrappers. The actual calculation will happen once the user selects the granularity, e.g.daily
ormonthly
.So in the above example we would like to set the complexity of the fields
data
andacInverterYield
to 0 by using.Cost(0)
, but this is not possible due to the error: "The complexity cannot be below one."Would it be possible to allow setting the complexity to 0 in the future, or do you think that this is a wrong approach here? Curious to hear some opinions 🙂
Beta Was this translation helpful? Give feedback.
All reactions