Skip to content
Snippets Groups Projects
Verified Commit 8f8309d1 authored by Julian's avatar Julian Committed by Jonathan Weth
Browse files

Move search query to separate file

parent 1a6117eb
No related branches found
No related tags found
1 merge request!1098Resolve "Make progress page and search bar use GraphQL"
......@@ -17,18 +17,7 @@ export default {
<template>
<ApolloQuery
:query="gql => gql`
query search ($q: String!) {
searchSnippets (query: $q, limit: 5) {
obj {
name
absoluteUrl
icon
}
text
}
}
`"
:query="require('./searchSnippets.graphql')"
:variables="{
q
}"
......
query search ($q: String!) {
searchSnippets (query: $q, limit: 5) {
obj {
name
absoluteUrl
icon
}
text
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment