Skip to content

Commit 20590e0

Browse files
Merge pull request #8100 from bakaphp/feat/payment-receiver-stats
feat: add hasOrder to orderTransitionHistory
2 parents 561540e + c39dd51 commit 20590e0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

graphql/schemas/Souk/order.graphql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,11 @@ extend type Query @guard {
587587
columns: ["name", "slug", "id"]
588588
handler: "App\\GraphQL\\Souk\\Handlers\\FromStatusHandler"
589589
)
590+
hasOrder: _
591+
@whereHasConditions(
592+
relation: "order"
593+
columns: ["user_email", "user_phone", "status", "reference"]
594+
)
590595
paymentMethodType: PaymentMethodType @scope(name: "paymentMethodType")
591596
): [OrderTransitionHistory!]!
592597
@paginate(

0 commit comments

Comments
 (0)