<template>
<ApolloQuery
:query
"
require
(
'
../queries/SPEAKERS.gql
'
)
"
<template
slot-scope
"
{ result: { loading, error, data } }
"
<span
v-if
"
loading
"
Loading
</span>
<div
v-if
=
"
data
&&
!
loading
"
<ul
v-if
=
"
data
.
allSpeakers
.
length
"
>
<li
v-for
=
"
s
in
data
.
allSpeakers
"
:key
"
s
.
id
"
<img
:src
"
s
.
photo
.
url
"
:alt
"
s
.
name
"
/>
<span>
{{s
.
name
}}
</span>
</li>
</ul>
<div
v-else
class
"
empty
"
No Speakers match your search
</div>
</div>
</template>
</ApolloQuery>
</template>