From dc06b45ff5e1fddc77f745a5aa5da4a59c58a662 Mon Sep 17 00:00:00 2001 From: Oliver Rice Date: Thu, 7 Dec 2023 10:54:45 -0600 Subject: [PATCH] align whitespace --- test/expected/issue_454.out | 67 ++++++++++++++++++++++++++++++++++++- 1 file changed, 66 insertions(+), 1 deletion(-) diff --git a/test/expected/issue_454.out b/test/expected/issue_454.out index 882056bd..57b396d1 100644 --- a/test/expected/issue_454.out +++ b/test/expected/issue_454.out @@ -2,7 +2,6 @@ begin; create table foo( id int primary key ); - insert into foo (id) values (1); create or replace function bar(foo) returns int[] @@ -29,4 +28,70 @@ begin; {"data": {"fooCollection": {"edges": [{"node": {"id": 1, "bar": [1, 2, 3]}}]}}} (1 row) + select jsonb_pretty( + graphql.resolve($$ + { + __type(name: "Foo") { + kind + fields { + name + type { + kind + name + ofType { + kind + name + } + } + } + } + } + $$) + ); + jsonb_pretty +----------------------------------------------- + { + + "data": { + + "__type": { + + "kind": "OBJECT", + + "fields": [ + + { + + "name": "nodeId", + + "type": { + + "kind": "NON_NULL", + + "name": null, + + "ofType": { + + "kind": "SCALAR",+ + "name": "ID" + + } + + } + + }, + + { + + "name": "id", + + "type": { + + "kind": "NON_NULL", + + "name": null, + + "ofType": { + + "kind": "SCALAR",+ + "name": "Int" + + } + + } + + }, + + { + + "name": "bar", + + "type": { + + "kind": "LIST", + + "name": null, + + "ofType": { + + "kind": "SCALAR",+ + "name": "Int" + + } + + } + + } + + ] + + } + + } + + } +(1 row) + rollback;