Skip to content

Commit

Permalink
Optimized expands from Vue.js App
Browse files Browse the repository at this point in the history
  • Loading branch information
danjoa committed Aug 28, 2024
1 parent 8343013 commit d844642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bookshop/app/vue/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const books = Vue.createApp ({
search: ({target:{value:v}}) => books.fetch(v && '&$search='+v),

async fetch (etc='') {
const {data} = await GET(`/ListOfBooks?$expand=genre,currency${etc}`)
const {data} = await GET(`/ListOfBooks?$expand=genre($select=name),currency($select=symbol)${etc}`)
books.list = data.value
},

Expand Down

0 comments on commit d844642

Please sign in to comment.