2020-11-18 21:04:57 +03:00
|
|
|
# For now this is an error since this seens very likely user error, but we're
|
|
|
|
# not committed to this.
|
|
|
|
- description: non-volatile function as mutation (error, for now)
|
|
|
|
url: /v1/query
|
|
|
|
status: 400
|
|
|
|
response:
|
|
|
|
internal:
|
2021-05-19 08:01:54 +03:00
|
|
|
- definition:
|
|
|
|
schema: public
|
|
|
|
name: stable_func1
|
|
|
|
reason:
|
|
|
|
'Inconsistent object: in function "stable_func1": the function "stable_func1"
|
|
|
|
cannot be tracked because the function was requested to be exposed as a mutation,
|
|
|
|
but is not marked VOLATILE. Maybe the function was given the wrong volatility
|
|
|
|
when it was defined?'
|
|
|
|
name: function stable_func1 in source default
|
|
|
|
type: function
|
2020-11-18 21:04:57 +03:00
|
|
|
path: $.args
|
2021-05-19 08:01:54 +03:00
|
|
|
error:
|
|
|
|
'Inconsistent object: in function "stable_func1": the function "stable_func1"
|
|
|
|
cannot be tracked because the function was requested to be exposed as a mutation,
|
|
|
|
but is not marked VOLATILE. Maybe the function was given the wrong volatility
|
|
|
|
when it was defined?'
|
|
|
|
code: invalid-configuration
|
2020-11-18 21:04:57 +03:00
|
|
|
query:
|
|
|
|
version: 2
|
|
|
|
type: track_function
|
|
|
|
args:
|
|
|
|
function: stable_func1
|
|
|
|
configuration:
|
|
|
|
exposed_as: mutation
|