mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
10 lines
393 B
TypeScript
10 lines
393 B
TypeScript
import { createUnionType } from 'type-graphql'
|
|
|
|
import { ContributionLink } from '@model/ContributionLink'
|
|
import { TransactionLink } from '@model/TransactionLink'
|
|
|
|
export const QueryLinkResult = createUnionType({
|
|
name: 'QueryLinkResult', // the name of the GraphQL union
|
|
types: () => [TransactionLink, ContributionLink] as const, // function that returns tuple of object types classes
|
|
})
|