Use filtering on index

This commit is contained in:
Douglas Barone 2023-02-07 15:18:53 -04:00
parent 547aefe2e1
commit cd8a18090f

View File

@ -394,8 +394,8 @@ export default {
fetchPolicy: 'cache-and-network',
debounce: 200,
query: gql`
query accessPoints {
accessPoints {
query accessPoints($networkShortName: String) {
accessPoints(networkShortName: $networkShortName) {
id
mac
hostname
@ -420,6 +420,11 @@ export default {
}
}
`,
variables() {
return {
networkShortName: (this.sameCampus && this.me?.campus) || undefined
}
},
subscribeToMore: {
document: gql`
subscription {