mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
load contribution link and transaction link
This commit is contained in:
parent
d1a26f6bff
commit
ef881d94cd
@ -114,17 +114,35 @@ export const queryOptIn = gql`
|
||||
export const queryTransactionLink = gql`
|
||||
query($code: String!) {
|
||||
queryTransactionLink(code: $code) {
|
||||
id
|
||||
amount
|
||||
memo
|
||||
createdAt
|
||||
validUntil
|
||||
redeemedAt
|
||||
deletedAt
|
||||
user {
|
||||
firstName
|
||||
publisherId
|
||||
email
|
||||
LinkType {
|
||||
... on TransactionLink {
|
||||
id
|
||||
amount
|
||||
memo
|
||||
createdAt
|
||||
validUntil
|
||||
redeemedAt
|
||||
deletedAt
|
||||
user {
|
||||
firstName
|
||||
publisherId
|
||||
email
|
||||
}
|
||||
}
|
||||
... on ContributionLink {
|
||||
id
|
||||
validTo
|
||||
validFrom
|
||||
amount
|
||||
name
|
||||
memo
|
||||
cycle
|
||||
createdAt
|
||||
code
|
||||
link
|
||||
deletedAt
|
||||
maxAmountPerMonth
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -62,6 +62,7 @@ export default {
|
||||
},
|
||||
})
|
||||
.then((result) => {
|
||||
console.log(result)
|
||||
this.linkData = result.data.queryTransactionLink
|
||||
})
|
||||
.catch((err) => {
|
||||
|
||||
@ -29,7 +29,11 @@ const authLink = new ApolloLink((operation, forward) => {
|
||||
|
||||
const apolloClient = new ApolloClient({
|
||||
link: authLink.concat(httpLink),
|
||||
cache: new InMemoryCache(),
|
||||
cache: new InMemoryCache({
|
||||
possibleTypes: {
|
||||
LinkType: ['TransactionLink', 'ContributionLink'],
|
||||
},
|
||||
}),
|
||||
})
|
||||
|
||||
export const apolloProvider = new VueApollo({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user