Skip to content

Commit

Permalink
feat: showcase the use of relations
Browse files Browse the repository at this point in the history
  • Loading branch information
esteban-url committed Jan 3, 2025
1 parent 1f16d1b commit af40618
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ export const QUERY: TypedDocumentNode<
> = gql`
query Find${pluralPascalName} {
${pluralCamelName} {<% columns.forEach(column => { %>
<%= column.name %><% }) %>
<%= column.name %><% }) %><% relations.forEach(relation => { %>
${relation} {
id
# Add the ${relation} fields you need here
}
<% }) %>
}
}
`
Expand Down

0 comments on commit af40618

Please sign in to comment.