74. Mutation: Verify "Equation"
mutation VerifyEquation {
verifyEquation(input: {
dataVariables: [{
variable: "yield_vol"
sampleValue: 1.1
}, {
variable: "prod"
sampleValue: 2.2
}]
equationAsText: """calculated = yield_vol/prod + 3.5
if calculated >= 30:
result = 35
elif calculated >= 20 and calculated < 30:
result = 25
else:
result = 15
"""
equationResultVariable: "result"
}) {
executed
result
errorMessage
}
}Previous73. Query: Get Gridded Data with the Selected BufferNext75. Mutation: Generate "EquationMap" asynchronously
Last updated
Was this helpful?