diff --git a/packages/graphql/src/accounts/account.ts b/packages/graphql/src/accounts/account.ts index ad9a74538..dc37924af 100644 --- a/packages/graphql/src/accounts/account.ts +++ b/packages/graphql/src/accounts/account.ts @@ -1,8 +1,8 @@ import type { FragmentOf } from 'gql.tada'; import { - Account, AccountAvailable, AccountBlocked, + AccountFragment, PaginatedResultInfo, SelfFundedTransactionRequest, SponsoredTransactionRequest, @@ -16,7 +16,7 @@ export const AccountQuery = graphql( ...Account } }`, - [Account], + [AccountFragment], ); export type AccountRequest = RequestOf; @@ -33,7 +33,7 @@ export const SearchAccountsQuery = graphql( } } }`, - [Account, PaginatedResultInfo], + [AccountFragment, PaginatedResultInfo], ); export type SearchAccountsRequest = RequestOf; diff --git a/packages/graphql/src/follow.ts b/packages/graphql/src/follow.ts index 22f6c88de..08a1a5ba5 100644 --- a/packages/graphql/src/follow.ts +++ b/packages/graphql/src/follow.ts @@ -1,7 +1,7 @@ import type { FragmentOf } from 'gql.tada'; import { - Account, + AccountFragment, BooleanValue, PaginatedResultInfo, SelfFundedTransactionRequest, @@ -97,7 +97,7 @@ const Follower = graphql( } followedOn }`, - [Account], + [AccountFragment], ); export type Follower = FragmentOf; @@ -109,7 +109,7 @@ const Following = graphql( } followedOn }`, - [Account], + [AccountFragment], ); export type Following = FragmentOf; diff --git a/packages/graphql/src/fragments/account.ts b/packages/graphql/src/fragments/account.ts index 85ba76490..55a829632 100644 --- a/packages/graphql/src/fragments/account.ts +++ b/packages/graphql/src/fragments/account.ts @@ -28,7 +28,7 @@ export const AccountMetadata = graphql( ); export type AccountMetadata = FragmentOf; -export const Account = graphql( +export const AccountFragment = graphql( `fragment Account on Account { __typename address @@ -38,7 +38,7 @@ export const Account = graphql( }`, [Username], ); -export type Account = FragmentOf; +export type Account = FragmentOf; export const FullAccount = graphql( `fragment Account on Account { @@ -94,7 +94,7 @@ const AccountManaged = graphql( ...AccountManagerPermissions } }`, - [AccountManagerPermissions, Account], + [AccountManagerPermissions, AccountFragment], ); export type AccountManaged = FragmentOf; @@ -112,7 +112,7 @@ export const AccountAvailable = graphql( } } }`, - [Account, AccountManaged], + [AccountFragment, AccountManaged], ); export type AccountAvailable = FragmentOf; @@ -124,6 +124,6 @@ export const AccountBlocked = graphql( ...Account } }`, - [Account], + [AccountFragment], ); export type AccountBlocked = FragmentOf; diff --git a/packages/graphql/src/fragments/post.ts b/packages/graphql/src/fragments/post.ts index f01e80351..6e2642c76 100644 --- a/packages/graphql/src/fragments/post.ts +++ b/packages/graphql/src/fragments/post.ts @@ -1,6 +1,6 @@ import type { FragmentOf } from 'gql.tada'; import { graphql } from '../graphql'; -import { Account } from './account'; +import { AccountFragment } from './account'; import { ActionInputInfo, Amount, BooleanValue, NetworkAddress } from './common'; import { App, Feed } from './primitives'; @@ -134,7 +134,7 @@ export const ReferencedPost = graphql( } } `, - [Account, App, Feed, PostMetadata, PostAction, LoggedInPostOperations], + [AccountFragment, App, Feed, PostMetadata, PostAction, LoggedInPostOperations], ); export const NestedPost = graphql( @@ -184,7 +184,7 @@ export const Post = graphql( } } `, - [Account, App, Feed, PostMetadata, PostAction, NestedPost, LoggedInPostOperations], + [AccountFragment, App, Feed, PostMetadata, PostAction, NestedPost, LoggedInPostOperations], ); export type Post = FragmentOf; @@ -277,6 +277,6 @@ export const AccountPostReaction = graphql( ...PostReaction } }`, - [Account, PostReaction], + [AccountFragment, PostReaction], ); export type AccountPostReaction = FragmentOf; diff --git a/packages/graphql/src/notifications.ts b/packages/graphql/src/notifications.ts index 75a81d5c0..f7aa90b6b 100644 --- a/packages/graphql/src/notifications.ts +++ b/packages/graphql/src/notifications.ts @@ -1,5 +1,5 @@ import type { FragmentOf } from 'gql.tada'; -import { Account, PaginatedResultInfo, Post } from './fragments'; +import { AccountFragment, PaginatedResultInfo, Post } from './fragments'; import { type RequestOf, graphql } from './graphql'; const FollowNotification = graphql( @@ -13,7 +13,7 @@ const FollowNotification = graphql( followedAt } }`, - [Account], + [AccountFragment], ); export type FollowNotification = FragmentOf; @@ -34,7 +34,7 @@ const ReactionNotification = graphql( ...Post } }`, - [Account, Post], + [AccountFragment, Post], ); export type ReactionNotification = FragmentOf; @@ -65,7 +65,7 @@ const RepostNotification = graphql( ...Post } }`, - [Account], + [AccountFragment], ); export type RepostNotification = FragmentOf;