Merged in chore/replace-graphql-tag/loader (pull request #3096)
Use turbopack for dev builds. Remove graphql-tag/loader, replaced by gql`` tag literals instead. Approved-by: Linus Flood
This commit is contained in:
39
packages/trpc/lib/graphql/Fragments/Blocks/List.graphql.ts
Normal file
39
packages/trpc/lib/graphql/Fragments/Blocks/List.graphql.ts
Normal file
@@ -0,0 +1,39 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
export const ListItem = gql`
|
||||
fragment ListItem on CurrentBlocksPageBlocksListBlockListItemsListItem {
|
||||
list_item {
|
||||
list_item_style
|
||||
subtitle
|
||||
title
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
export const ListItemExternalLink = gql`
|
||||
fragment ListItemExternalLink on CurrentBlocksPageBlocksListBlockListItemsListItemExternalLink {
|
||||
list_item_external_link {
|
||||
link {
|
||||
href
|
||||
title
|
||||
}
|
||||
list_item_style
|
||||
subtitle
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
export const ListBlock = gql`
|
||||
fragment ListBlock on CurrentBlocksPageBlocksList {
|
||||
list {
|
||||
list_items {
|
||||
__typename
|
||||
...ListItem
|
||||
...ListItemExternalLink
|
||||
}
|
||||
title
|
||||
}
|
||||
}
|
||||
${ListItem}
|
||||
${ListItemExternalLink}
|
||||
`
|
||||
Reference in New Issue
Block a user