Update subscriptions to use sourceObject
This commit is contained in:
parent
04a92c77e5
commit
e6855e52df
1 changed files with 24 additions and 2 deletions
|
@ -14,7 +14,16 @@ export const gatewayInitialize = `subscription {
|
||||||
name
|
name
|
||||||
}
|
}
|
||||||
sourceObject {
|
sourceObject {
|
||||||
__typename
|
... on Checkout {
|
||||||
|
user {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
}
|
||||||
|
...on Order {
|
||||||
|
user {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
data
|
data
|
||||||
amount
|
amount
|
||||||
|
@ -37,6 +46,19 @@ export const transactionInitialize = `subscription {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
}
|
}
|
||||||
|
sourceObject {
|
||||||
|
... on Checkout {
|
||||||
|
user {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
}
|
||||||
|
...on Order {
|
||||||
|
user {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
}
|
||||||
|
__typename
|
||||||
|
}
|
||||||
transaction {
|
transaction {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
|
@ -51,7 +73,7 @@ export const transactionInitialize = `subscription {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}`
|
}`;
|
||||||
|
|
||||||
export const chargeSub = `subscription {
|
export const chargeSub = `subscription {
|
||||||
event {
|
event {
|
||||||
|
|
Loading…
Reference in a new issue