fix: mutation type with tabs missing previous tabs (#3196)

This commit is contained in:
Paul
2023-08-24 21:29:25 +03:00
committed by GitHub
parent cb8e07f852
commit 6d3b8636f4
2 changed files with 44 additions and 1 deletions

View File

@@ -200,7 +200,7 @@ function buildMutationInputType(payload: Payload, name: string, fields: Field[],
if (requiresAtLeastOneField) type = new GraphQLNonNull(type);
return {
...inputObjectTypeConfig,
...acc,
[tab.name]: { type },
};
}