Fixed subscription issue. Related to no authorization token for WS request.

This commit is contained in:
Patrick Fic
2019-12-11 23:17:09 -08:00
parent 3c3f1e8650
commit aa21c51023
3 changed files with 41 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
import { gql } from "apollo-boost";
export const GET_ALL_OPEN_JOBS = gql`
{
query GET_ALL_OPEN_JOBS {
jobs {
id
est_number
@@ -24,9 +24,10 @@ export const GET_ALL_OPEN_JOBS = gql`
`;
export const SUBSCRIPTION_ALL_OPEN_JOBS = gql`
subscription {
subscription AllJobs {
jobs {
id
updated_at
est_number
ro_number
status
@@ -45,3 +46,12 @@ export const SUBSCRIPTION_ALL_OPEN_JOBS = gql`
}
}
`;
export const test = gql`
subscription s {
masterdata {
key
value
}
}
`;