Skip to content

Commit

Permalink
custom sel set result matches shape (#12333)
Browse files Browse the repository at this point in the history
  • Loading branch information
iartemiev authored Oct 17, 2023
1 parent ce6e561 commit 8035dfc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export function generateModelsProperty<T extends Record<any, any> = never>(
const flattenedResult = flattenItems(data)[key];

if (options?.selectionSet) {
return flattenedResult;
return { data: flattenedResult, extensions };
} else {
// TODO: refactor to avoid destructuring here
const [initialized] = initializeModel(
Expand Down

0 comments on commit 8035dfc

Please sign in to comment.