graph-node icon indicating copy to clipboard operation
graph-node copied to clipboard

WIP: Nested Sorting

Open kamilkisiela opened this issue 3 years ago • 0 comments

#3737

Given this schema:

type Country @entity {
  id: ID!
  capital: City!
  cities: [City!]!
}

type City @entity {
  id: ID!
  name: String
  population: Int
  landmarks: [String!]!
}

It adds fields of child entity to *_orderBy enum:

enum Country_orderBy {
   id
   capital
   cities
+  capital__id
+  capital__name
+  capital__population
}
  • [x] sort by type Child @entity { name: String }
  • [x] can't sort by type Child @entity { names: [String] }
  • [x] can't sort by type Child @entity { secondLevelChild: AnotherEntity }
  • [x] can't sort by type Child @entity { secondLevelChildren: [AnotherEntity] }
  • [x] support @derivedFrom
  • [x] sort by interface Child { name: String }
  • [ ] sort interface by type Child @entity { name: String }

kamilkisiela avatar Dec 23 '21 15:12 kamilkisiela