From 5de36a248b046da195fa32808e34fdc8b0561dee Mon Sep 17 00:00:00 2001 From: Ron <38083777+roneli@users.noreply.github.com> Date: Wed, 17 Jul 2024 00:40:52 +0300 Subject: [PATCH] more moving around --- docs/astro.config.mjs | 4 +-- docs/src/assets/favicon.svg | 29 ++++++++++++++++++++++ pkg/execution/builders/sql/builder_test.go | 2 +- 3 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 docs/src/assets/favicon.svg diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index 3082ad6..3810ab1 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -14,11 +14,11 @@ export default defineConfig({ }, maxDuration: 8 }), - site: 'https://fastgql.com', + site: 'https://fastgql.io', base: "/", integrations: [starlight({ title: 'FastGQL', - favicon: './favicon.svg', + favicon: './src/assets/favicon.svg', social: { github: 'https://github.com/roneli/fastgql' }, diff --git a/docs/src/assets/favicon.svg b/docs/src/assets/favicon.svg new file mode 100644 index 0000000..b88cd1d --- /dev/null +++ b/docs/src/assets/favicon.svg @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + diff --git a/pkg/execution/builders/sql/builder_test.go b/pkg/execution/builders/sql/builder_test.go index 73427d1..7d142c7 100644 --- a/pkg/execution/builders/sql/builder_test.go +++ b/pkg/execution/builders/sql/builder_test.go @@ -165,7 +165,7 @@ func TestBuilder_Delete(t *testing.T) { { Name: "simple_delete", SchemaFile: "testdata/schema_simple.graphql", - GraphQLQuery: `mutation { deletePosts { rows_affected posts { name id } } }`, + GraphQLQuery: `mutation { deletePosts { rows_affected posts { name id } } }`, ExpectedSQL: `WITH delete_posts AS (DELETE FROM "posts" RETURNING *) SELECT (SELECT COALESCE(jsonb_agg(jsonb_build_object('name', "sq0"."name", 'id', "sq0"."id")), '[]'::jsonb) AS "posts" FROM "delete_posts" AS "sq0") AS "posts", (SELECT COUNT(*) AS "rows_affected" FROM "delete_posts")`, ExpectedArguments: []interface{}{}, },