This commit is contained in:
2017-02-10 00:33:25 +00:00
commit a3e6ce3fb5
99 changed files with 11317 additions and 0 deletions

17
src/core/fetchQL.js Normal file
View File

@@ -0,0 +1,17 @@
import fetch from './fetch';
export default function (query, params) {
return fetch('/graphql', {
method: 'post',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
},
body: JSON.stringify({
query,
params,
}),
credentials: 'include',
});
}