diff --git a/src/core/ir/jit/model.rs b/src/core/ir/jit/model.rs index 119307b949..c08dbb91ce 100644 --- a/src/core/ir/jit/model.rs +++ b/src/core/ir/jit/model.rs @@ -142,6 +142,7 @@ impl ExecutionPlan { let field_children = fields .clone() .into_iter() + .filter(|f| f.refs.is_none()) .map(|f| f.into_children(&fields)) .collect::>(); diff --git a/src/core/ir/jit/snapshots/tailcall__core__ir__jit__builder__tests__default_value.snap b/src/core/ir/jit/snapshots/tailcall__core__ir__jit__builder__tests__default_value.snap index 102f565a68..414d7fc543 100644 --- a/src/core/ir/jit/snapshots/tailcall__core__ir__jit__builder__tests__default_value.snap +++ b/src/core/ir/jit/snapshots/tailcall__core__ir__jit__builder__tests__default_value.snap @@ -95,10 +95,5 @@ ExecutionPlan { ), ), }, - Field { - id: 1, - name: "id", - type_of: Int!, - }, ], } diff --git a/src/core/ir/jit/snapshots/tailcall__core__ir__jit__builder__tests__from_document.snap b/src/core/ir/jit/snapshots/tailcall__core__ir__jit__builder__tests__from_document.snap index f4cd66f7ea..11c7a0c294 100644 --- a/src/core/ir/jit/snapshots/tailcall__core__ir__jit__builder__tests__from_document.snap +++ b/src/core/ir/jit/snapshots/tailcall__core__ir__jit__builder__tests__from_document.snap @@ -71,37 +71,5 @@ ExecutionPlan { ), ), }, - Field { - id: 1, - name: "user", - ir: "Some(..)", - type_of: User, - refs: Some( - Children( - [ - Field { - id: 2, - name: "id", - type_of: Int!, - }, - Field { - id: 3, - name: "name", - type_of: String!, - }, - ], - ), - ), - }, - Field { - id: 2, - name: "id", - type_of: Int!, - }, - Field { - id: 3, - name: "name", - type_of: String!, - }, ], } diff --git a/src/core/ir/jit/snapshots/tailcall__core__ir__jit__builder__tests__multiple_operations.snap b/src/core/ir/jit/snapshots/tailcall__core__ir__jit__builder__tests__multiple_operations.snap index 9f47fa7dbf..1c0159bbba 100644 --- a/src/core/ir/jit/snapshots/tailcall__core__ir__jit__builder__tests__multiple_operations.snap +++ b/src/core/ir/jit/snapshots/tailcall__core__ir__jit__builder__tests__multiple_operations.snap @@ -98,16 +98,6 @@ ExecutionPlan { ), ), }, - Field { - id: 1, - name: "id", - type_of: Int!, - }, - Field { - id: 2, - name: "username", - type_of: String!, - }, Field { id: 3, name: "posts", @@ -130,15 +120,5 @@ ExecutionPlan { ), ), }, - Field { - id: 4, - name: "id", - type_of: Int!, - }, - Field { - id: 5, - name: "title", - type_of: String!, - }, ], } diff --git a/src/core/ir/jit/snapshots/tailcall__core__ir__jit__builder__tests__simple_mutation.snap b/src/core/ir/jit/snapshots/tailcall__core__ir__jit__builder__tests__simple_mutation.snap index bfa496f510..e8cd3af83e 100644 --- a/src/core/ir/jit/snapshots/tailcall__core__ir__jit__builder__tests__simple_mutation.snap +++ b/src/core/ir/jit/snapshots/tailcall__core__ir__jit__builder__tests__simple_mutation.snap @@ -190,35 +190,5 @@ ExecutionPlan { ), ), }, - Field { - id: 1, - name: "id", - type_of: Int!, - }, - Field { - id: 2, - name: "name", - type_of: String!, - }, - Field { - id: 3, - name: "email", - type_of: String!, - }, - Field { - id: 4, - name: "phone", - type_of: String, - }, - Field { - id: 5, - name: "website", - type_of: String, - }, - Field { - id: 6, - name: "username", - type_of: String!, - }, ], } diff --git a/src/core/ir/jit/snapshots/tailcall__core__ir__jit__builder__tests__simple_query.snap b/src/core/ir/jit/snapshots/tailcall__core__ir__jit__builder__tests__simple_query.snap index 8909f45e90..8c791106c4 100644 --- a/src/core/ir/jit/snapshots/tailcall__core__ir__jit__builder__tests__simple_query.snap +++ b/src/core/ir/jit/snapshots/tailcall__core__ir__jit__builder__tests__simple_query.snap @@ -58,27 +58,5 @@ ExecutionPlan { ), ), }, - Field { - id: 1, - name: "user", - ir: "Some(..)", - type_of: User, - refs: Some( - Children( - [ - Field { - id: 2, - name: "id", - type_of: Int!, - }, - ], - ), - ), - }, - Field { - id: 2, - name: "id", - type_of: Int!, - }, ], } diff --git a/src/core/ir/jit/snapshots/tailcall__core__ir__jit__builder__tests__variables.snap b/src/core/ir/jit/snapshots/tailcall__core__ir__jit__builder__tests__variables.snap index 340f673c8b..7ca825adf3 100644 --- a/src/core/ir/jit/snapshots/tailcall__core__ir__jit__builder__tests__variables.snap +++ b/src/core/ir/jit/snapshots/tailcall__core__ir__jit__builder__tests__variables.snap @@ -80,15 +80,5 @@ ExecutionPlan { ), ), }, - Field { - id: 1, - name: "id", - type_of: Int!, - }, - Field { - id: 2, - name: "name", - type_of: String!, - }, ], }