Skip to content

Commit

Permalink
Add test property Artist.paintings as output only
Browse files Browse the repository at this point in the history
  • Loading branch information
guillermocalvo committed Oct 23, 2023
1 parent 199ef3a commit 7a4ee30
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class Artist {

static graphql = GraphQLMapping.build {
add('paintings', [Painting]) {
input(false)
dataFetcher {
return [new Painting(name: 'test', artistName: 'Picasso', heightCm: 60, widthCm: 120)]
}
Expand Down

0 comments on commit 7a4ee30

Please sign in to comment.