@@ -105,7 +105,7 @@ public override void Visit(ISchema schema)
105105 }
106106 }
107107
108- private void CreateContentField < T > ( ObjectGraphType < T > query , IComplexGraphType graphType ,
108+ private void CreateContentField < T > ( ComplexGraphType < T > query , IComplexGraphType graphType ,
109109 IPublishedContentType publishedContentType ,
110110 Func < IPublishedContentCache , string , IEnumerable < IPublishedContent > > fetch )
111111 {
@@ -114,15 +114,18 @@ private void CreateContentField<T>(ObjectGraphType<T> query, IComplexGraphType g
114114 . Bidirectional ( )
115115 . Resolve ( ctx =>
116116 {
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 ( ) ;
118119
119120 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 ) ;
121122 } ) ;
122123
123124 var connectionField = query . GetField ( publishedContentType . Alias ) ;
124125 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" } ) ;
126129 }
127130 }
128131}
0 commit comments