add graphql deps and minimal example
This commit is contained in:
@@ -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'
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,5 @@
|
||||
query TextRef ($id: Int!) {
|
||||
textref (id: $id) {
|
||||
title
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user