switched apollo boost to apollo client

This commit is contained in:
Sean Macfarlane
2020-07-09 13:06:53 -04:00
parent 5f58073e52
commit b5c7ad0a7b
2 changed files with 95 additions and 59 deletions

View File

@@ -1,5 +1,15 @@
import gql from 'graphql-tag';
export const REFRESH_TOKEN = gql`
mutation UpdateToken($refreshToken: String!) {
updateToken(refreshToken: $refreshToken) {
access_token
refresh_token
expires_in
}
}
`;
export const CREATE_LOCATION = gql`
mutation CreateLocation(
$locationType: String!
@@ -67,7 +77,8 @@ export const UPDATE_EQUIPMENT_BULK = gql`
export const FILE_UPLOAD = gql`
mutation FileUpload($fileName: String, $file: Upload) {
fileUpload(fileName: $fileName, file: $file) {
success
fileName
baseUrl
}
}
`;