Skip to content

Commit

Permalink
fix(angular-ngrx-component-store-graphql-table): continued implementa…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
JBBianchi committed Jan 10, 2024
1 parent 7b431da commit 259b665
Show file tree
Hide file tree
Showing 8 changed files with 1,584 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,6 @@ const countSelector = (graphqlResponse: any): number => graphqlResponse?.data?.a

const dataSelector = (graphqlResponse: any): any[] => graphqlResponse?.data?.allPlanets?.planets || [];

const responseMapper = (graphqlResponse: any): ODataQueryResultDto<any> => ({
'@odata.context': 'unkown',
'@odata.count': countSelector(graphqlResponse),
value: dataSelector(graphqlResponse),
});

const expectedPlanetsResponse = {
data: {
allPlanets: {
Expand Down
Loading

0 comments on commit 259b665

Please sign in to comment.