add graphql deps and minimal example

This commit is contained in:
axolotle
2021-02-23 12:55:05 +01:00
parent c0fd76d93a
commit af608b9487
6 changed files with 58 additions and 4 deletions
+9
View File
@@ -0,0 +1,9 @@
import axios from 'axios'
export default axios.create({
baseURL: window.location.origin + '/api/gql',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json'
}
})
+5
View File
@@ -0,0 +1,5 @@
query TextRef ($id: Int!) {
textref (id: $id) {
title
}
}