mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
8 lines
375 B
TypeScript
8 lines
375 B
TypeScript
import { createUnionType } from 'type-graphql'
|
|
import { TransactionLink } from '@model/TransactionLink'
|
|
import { ContributionLink } from '@model/ContributionLink'
|
|
export default createUnionType({
|
|
name: 'QueryLinkResult', // the name of the GraphQL union
|
|
types: () => [TransactionLink, ContributionLink] as const, // function that returns tuple of object types classes
|
|
})
|