Mutation to call generateLink written in frontend.

This commit is contained in:
elweyn 2022-03-09 17:53:56 +01:00
parent c38c5c3243
commit d99dc6d20a

View File

@ -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
}
}
`