graphql-engine/server/tests-py/queries/graphql_mutation/functions/smoke_errs.yaml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
1.1 KiB
YAML
Raw Normal View History

# 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