graphql-engine/server/tests-py/queries/graphql_mutation/functions/smoke_errs.yaml
Abby Sassel 3ba5d1e540 server: include more detail in inconsistent metadata error messages (fix #6684)
GitOrigin-RevId: 1a0d8fa2b465320e9ab4ea43259d0e8d92364473
2021-05-19 05:02:53 +00:00

32 lines
1.1 KiB
YAML

# 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:
- 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
path: $.args
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
query:
version: 2
type: track_function
args:
function: stable_func1
configuration:
exposed_as: mutation