Optimized expands from Vue.js App

This commit is contained in:
Daniel Hutzel
2024-08-28 13:35:03 +02:00
parent 8343013d3a
commit d844642ce9

View File

@@ -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
},