diff --git a/test/expected/function_calls.out b/test/expected/function_calls.out index 1be22c5e..a99a65dc 100644 --- a/test/expected/function_calls.out +++ b/test/expected/function_calls.out @@ -2161,4 +2161,38 @@ begin; } (1 row) + select jsonb_pretty(graphql.resolve($$ + query { + returnsTrigger + } + $$)); + jsonb_pretty +------------------------------------------------------------------------- + { + + "data": null, + + "errors": [ + + { + + "message": "Unknown field \"returnsTrigger\" on type Query"+ + } + + ] + + } +(1 row) + + select jsonb_pretty(graphql.resolve($$ + query { + returnsEventTrigger + } + $$)); + jsonb_pretty +------------------------------------------------------------------------------ + { + + "data": null, + + "errors": [ + + { + + "message": "Unknown field \"returnsEventTrigger\" on type Query"+ + } + + ] + + } +(1 row) + rollback; diff --git a/test/sql/function_calls.sql b/test/sql/function_calls.sql index b2be9339..4f1b0b07 100644 --- a/test/sql/function_calls.sql +++ b/test/sql/function_calls.sql @@ -770,4 +770,16 @@ begin; concatText(a: "hello ") } $$)); + + select jsonb_pretty(graphql.resolve($$ + query { + returnsTrigger + } + $$)); + + select jsonb_pretty(graphql.resolve($$ + query { + returnsEventTrigger + } + $$)); rollback;