Skip to content

Commit

Permalink
Add clarification comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Castro, Mario committed May 30, 2024
1 parent e38a5b6 commit 3e806b3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export class GraphQLGenerator {
if (info?.fieldName === `List${pluralize(readModelClass.name)}`) {
isPaginated = true
if (select) {
// In paginated queries, the `items[].` field needs to be removed from the select fields before querying the database
select = select
.map((field: string) => {
return field.split('.').slice(1).join('.')
Expand Down

0 comments on commit 3e806b3

Please sign in to comment.