@@ -272,7 +272,7 @@ public QueryLayer ComposeForGetById<TId>(TId id, ResourceType primaryResourceTyp
272
272
QueryLayer queryLayer = ComposeFromConstraints ( primaryResourceType ) ;
273
273
queryLayer . Sort = null ;
274
274
queryLayer . Pagination = null ;
275
- queryLayer . Filter = CreateFilterByIds ( id . AsArray ( ) , idAttribute , queryLayer . Filter ) ;
275
+ queryLayer . Filter = CreateFilterByIds ( [ id ] , idAttribute , queryLayer . Filter ) ;
276
276
277
277
if ( fieldSelection == TopFieldSelection . OnlyIdAttribute )
278
278
{
@@ -342,7 +342,7 @@ public QueryLayer WrapLayerForSecondaryEndpoint<TId>(QueryLayer secondaryLayer,
342
342
return new QueryLayer ( primaryResourceType )
343
343
{
344
344
Include = RewriteIncludeForSecondaryEndpoint ( innerInclude , relationship ) ,
345
- Filter = CreateFilterByIds ( primaryId . AsArray ( ) , primaryIdAttribute , primaryFilter ) ,
345
+ Filter = CreateFilterByIds ( [ primaryId ] , primaryIdAttribute , primaryFilter ) ,
346
346
Selection = primarySelection
347
347
} ;
348
348
}
@@ -390,7 +390,7 @@ public QueryLayer ComposeForUpdate<TId>(TId id, ResourceType primaryResourceType
390
390
primaryLayer . Include = includeElements . Any ( ) ? new IncludeExpression ( includeElements ) : IncludeExpression . Empty ;
391
391
primaryLayer . Sort = null ;
392
392
primaryLayer . Pagination = null ;
393
- primaryLayer . Filter = CreateFilterByIds ( id . AsArray ( ) , primaryIdAttribute , primaryLayer . Filter ) ;
393
+ primaryLayer . Filter = CreateFilterByIds ( [ id ] , primaryIdAttribute , primaryLayer . Filter ) ;
394
394
primaryLayer . Selection = null ;
395
395
396
396
return primaryLayer ;
@@ -449,7 +449,7 @@ public QueryLayer ComposeForHasMany<TId>(HasManyAttribute hasManyRelationship, T
449
449
AttrAttribute rightIdAttribute = GetIdAttribute ( hasManyRelationship . RightType ) ;
450
450
HashSet < object > rightTypedIds = rightResourceIds . Select ( resource => resource . GetTypedId ( ) ) . ToHashSet ( ) ;
451
451
452
- FilterExpression ? leftFilter = CreateFilterByIds ( leftId . AsArray ( ) , leftIdAttribute , null ) ;
452
+ FilterExpression ? leftFilter = CreateFilterByIds ( [ leftId ] , leftIdAttribute , null ) ;
453
453
FilterExpression ? rightFilter = CreateFilterByIds ( rightTypedIds , rightIdAttribute , null ) ;
454
454
455
455
var secondarySelection = new FieldSelection ( ) ;
0 commit comments