From cf8da60abf70e25f2b407973ef4bf820ddca9098 Mon Sep 17 00:00:00 2001 From: Natoandro Date: Fri, 23 Feb 2024 12:05:05 +0300 Subject: [PATCH] fix test failure --- typegate/deno.lock | 8 -------- .../typegate/__snapshots__/typegate_runtime_test.ts.snap | 6 +++--- typegraph/core/src/runtimes/prisma/relationship/mod.rs | 1 - .../core/src/runtimes/prisma/type_generation/out_type.rs | 2 +- .../runtimes/prisma/type_generation/with_nested_count.rs | 2 +- 5 files changed, 5 insertions(+), 14 deletions(-) diff --git a/typegate/deno.lock b/typegate/deno.lock index f7d7b0d2f..2a87c2194 100644 --- a/typegate/deno.lock +++ b/typegate/deno.lock @@ -1106,13 +1106,5 @@ "https://raw.githubusercontent.com/metatypedev/metatype/feat/MET-250/refactor-ffi/typegate/src/typegraph/visitor.ts": "854f2dd1adadc62ea2050f6e0f293c88f76d4feefb7620bcc490049fb8967043", "https://raw.githubusercontent.com/metatypedev/metatype/feat/MET-250/refactor-ffi/typegate/src/types.ts": "1857e6bf96b0642e15352e10dd4e175c4983edc421868ae0158ce271e075926d", "https://raw.githubusercontent.com/metatypedev/metatype/feat/MET-250/refactor-ffi/typegate/src/utils.ts": "8a34944dc326d1759c67fcdd4a714f99838d5eac040773bcdb7287a00118923b" - }, - "workspace": { - "packageJson": { - "dependencies": [ - "npm:chance@^1.1.11", - "npm:yarn@^1.22.19" - ] - } } } diff --git a/typegate/tests/runtimes/typegate/__snapshots__/typegate_runtime_test.ts.snap b/typegate/tests/runtimes/typegate/__snapshots__/typegate_runtime_test.ts.snap index dfea0d656..5b1c69696 100644 --- a/typegate/tests/runtimes/typegate/__snapshots__/typegate_runtime_test.ts.snap +++ b/typegate/tests/runtimes/typegate/__snapshots__/typegate_runtime_test.ts.snap @@ -523,7 +523,7 @@ snapshot[`typegate: find available operations 1`] = ` format: null, optional: false, runtime: "prisma", - title: "_317_messagesWithNestedCount[]", + title: "_336_messagesWithNestedCount[]", type: "list", }, outputItem: { @@ -610,7 +610,7 @@ snapshot[`typegate: find available operations 1`] = ` format: null, optional: false, runtime: "prisma", - title: "_22_user_identity[]", + title: "list_324", type: "list", }, }, @@ -661,7 +661,7 @@ snapshot[`typegate: find available operations 1`] = ` format: null, optional: false, runtime: "prisma", - title: "_26_messages[]", + title: "list_333", type: "list", }, }, diff --git a/typegraph/core/src/runtimes/prisma/relationship/mod.rs b/typegraph/core/src/runtimes/prisma/relationship/mod.rs index c08b09645..81176d7d6 100644 --- a/typegraph/core/src/runtimes/prisma/relationship/mod.rs +++ b/typegraph/core/src/runtimes/prisma/relationship/mod.rs @@ -95,7 +95,6 @@ impl PrismaLink { type_ref.set("target_field", target_field); } let res = type_ref.build()?; - eprintln!("type_ref: {:?}", res); Ok(res) } } diff --git a/typegraph/core/src/runtimes/prisma/type_generation/out_type.rs b/typegraph/core/src/runtimes/prisma/type_generation/out_type.rs index 1a0232ccf..91fd443bd 100644 --- a/typegraph/core/src/runtimes/prisma/type_generation/out_type.rs +++ b/typegraph/core/src/runtimes/prisma/type_generation/out_type.rs @@ -67,7 +67,7 @@ impl TypeGen for OutType { } Property::Unmanaged(type_id) => { // just forward the original type - builder.prop(key, remove_injections_recursive(*type_id)?); + builder.prop(key, *type_id); } } } diff --git a/typegraph/core/src/runtimes/prisma/type_generation/with_nested_count.rs b/typegraph/core/src/runtimes/prisma/type_generation/with_nested_count.rs index 2f3af652d..5bae80436 100644 --- a/typegraph/core/src/runtimes/prisma/type_generation/with_nested_count.rs +++ b/typegraph/core/src/runtimes/prisma/type_generation/with_nested_count.rs @@ -76,7 +76,7 @@ impl TypeGen for WithNestedCount { } Property::Unmanaged(type_id) => { - builder.prop(key, remove_injections_recursive(*type_id)?); + builder.prop(key, *type_id); } } }