@@ -105,7 +105,7 @@ public override void Visit(ISchema schema)
105
105
}
106
106
}
107
107
108
- private void CreateContentField < T > ( ObjectGraphType < T > query , IComplexGraphType graphType ,
108
+ private void CreateContentField < T > ( ComplexGraphType < T > query , IComplexGraphType graphType ,
109
109
IPublishedContentType publishedContentType ,
110
110
Func < IPublishedContentCache , string , IEnumerable < IPublishedContent > > fetch )
111
111
{
@@ -114,15 +114,18 @@ private void CreateContentField<T>(ObjectGraphType<T> query, IComplexGraphType g
114
114
. Bidirectional ( )
115
115
. Resolve ( ctx =>
116
116
{
117
- var items = fetch ( _publishedSnapshotAccessor . PublishedSnapshot . Content , ctx . GetArgument < string > ( "culture" ) ) . ToList ( ) ;
117
+ var items = fetch ( _publishedSnapshotAccessor . PublishedSnapshot . Content ,
118
+ ctx . GetArgument < string > ( "culture" ) ) . ToList ( ) ;
118
119
119
120
return items . OrderBy ( ctx . GetArgument < IEnumerable < OrderBy > > ( "orderBy" ) )
120
- . ToConnection ( x => x . Key , ctx . First , ctx . After , ctx . Last , ctx . Before , items . Count ) ;
121
+ . ToConnection ( x => x . Key , ctx . First , ctx . After , ctx . Last , ctx . Before , items . Count ) ;
121
122
} ) ;
122
123
123
124
var connectionField = query . GetField ( publishedContentType . Alias ) ;
124
125
connectionField . ResolvedType = new ConnectionGraphType ( graphType ) ;
125
- connectionField . Arguments . Add ( new QueryArgument ( new ListGraphType ( new NonNullGraphType ( new OrderByGraphType ( graphType ) ) ) ) { Name = "orderBy" } ) ;
126
+ connectionField . Arguments . Add (
127
+ new QueryArgument ( new ListGraphType ( new NonNullGraphType ( new OrderByGraphType ( graphType ) ) ) )
128
+ { Name = "orderBy" } ) ;
126
129
}
127
130
}
128
131
}
0 commit comments