@@ -29,7 +29,6 @@ export type FindManyPublicParams<
2929 direction : 'asc' | 'desc' ;
3030 }
3131 | undefined ;
32- backlinksTotalCountsTypeId1 ?: string | undefined ;
3332 includeSpaceIds ?: IncludeSpaceIds ;
3433 logInvalidResults ?: boolean | undefined ;
3534} ;
@@ -56,8 +55,6 @@ const buildEntitiesQuery = (
5655 '$first: Int' ,
5756 '$filter: EntityFilter!' ,
5857 '$offset: Int' ,
59- '$backlinksTotalCountsTypeId1: UUID' ,
60- '$backlinksTotalCountsTypeId1Present: Boolean!' ,
6158 ]
6259 . filter ( Boolean )
6360 . join ( ', ' ) ;
@@ -75,12 +72,6 @@ const buildEntitiesQuery = (
7572 : spaceSelection . mode === 'many'
7673 ? '(filter: { spaceId: { in: $spaceIds } })'
7774 : '' ;
78- const backlinksSpaceFilter =
79- spaceSelection . mode === 'single'
80- ? 'spaceId: {is: $spaceId}, '
81- : spaceSelection . mode === 'many'
82- ? 'spaceId: {in: $spaceIds}, '
83- : '' ;
8475
8576 return `
8677query ${ queryName } (${ variableDefinitions } ) {
@@ -102,9 +93,6 @@ query ${queryName}(${variableDefinitions}) {
10293 time
10394 point
10495 }
105- backlinksTotalCountsTypeId1: backlinks(filter: { ${ backlinksSpaceFilter } fromEntity: { typeIds: { is: [$backlinksTotalCountsTypeId1] } }}) @include(if: $backlinksTotalCountsTypeId1Present) {
106- totalCount
107- }
10896 ${ level1Relations }
10997 }
11098}` ;
@@ -132,9 +120,6 @@ export type EntityQueryResult = {
132120 name : string ;
133121 spaceIds : readonly ( string | null ) [ ] | null ;
134122 valuesList : ValuesList ;
135- backlinksTotalCountsTypeId1 : {
136- totalCount : number ;
137- } | null ;
138123 } & {
139124 // For aliased relations_* fields - provides proper typing with totalCount
140125 [ K : `relations_${string } `] : RelationsListWithNodes | undefined ;
@@ -148,7 +133,6 @@ type ParsedEntity<
148133 IncludeSpaceIds extends boolean | undefined ,
149134> = Entity . WithSpaceIds < Entity . Entity < S > , IncludeSpaceIds > & {
150135 __schema : S ;
151- backlinksTotalCountsTypeId1 ?: number ;
152136} ;
153137
154138export type FindManyParseResult < S extends Schema . Schema . AnyNoContext , IncludeSpaceIds extends boolean | undefined > = {
@@ -219,7 +203,6 @@ export const parseResult = <S extends Schema.Schema.AnyNoContext, IncludeSpaceId
219203 const baseEntity = {
220204 ...decodeResult . right ,
221205 __schema : type ,
222- backlinksTotalCountsTypeId1 : queryEntity . backlinksTotalCountsTypeId1 ?. totalCount ,
223206 } ;
224207 const entityWithSpaceIds = (
225208 includeSpaceIds
@@ -259,7 +242,6 @@ export const findManyPublic = async <
259242 first = 100 ,
260243 offset = 0 ,
261244 orderBy,
262- backlinksTotalCountsTypeId1,
263245 includeSpaceIds : includeSpaceIdsParam ,
264246 logInvalidResults = true ,
265247 } = params ?? { } ;
@@ -325,13 +307,6 @@ export const findManyPublic = async <
325307 queryVariables . sortDirection = sortDirection ;
326308 }
327309
328- if ( backlinksTotalCountsTypeId1 ) {
329- queryVariables . backlinksTotalCountsTypeId1 = backlinksTotalCountsTypeId1 ;
330- queryVariables . backlinksTotalCountsTypeId1Present = true ;
331- } else {
332- queryVariables . backlinksTotalCountsTypeId1Present = false ;
333- }
334-
335310 const result = await request < EntityQueryResult > ( `${ Graph . TESTNET_API_ORIGIN } /graphql` , queryDocument , queryVariables ) ;
336311
337312 const { data, invalidEntities, invalidRelationEntities } = parseResult < S , IncludeSpaceIds > (
0 commit comments