From d99dc6d20a680b444f9e55a3fa4266eabb79c0f0 Mon Sep 17 00:00:00 2001 From: elweyn Date: Wed, 9 Mar 2022 17:53:56 +0100 Subject: [PATCH] Mutation to call generateLink written in frontend. --- frontend/src/graphql/mutations.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/frontend/src/graphql/mutations.js b/frontend/src/graphql/mutations.js index c8f5455d7..d25f033a8 100644 --- a/frontend/src/graphql/mutations.js +++ b/frontend/src/graphql/mutations.js @@ -61,3 +61,19 @@ export const sendCoins = gql` sendCoins(email: $email, amount: $amount, memo: $memo) } ` + +export const createTransactionLink = gql` + mutation($amount: Decimal!, $memo: String!) { + createTransactionLink(amount: $amount, memo: $memo) { + code + id + validUntil + user { + email + } + memo + createdAt + validUntil + } + } +`