Advertisement
MaximErofeev

GraphQL schema part

Nov 24th, 2020
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. type Query {
  2.     masterListView( orderBy: MLRowsOrderByInput = { displayName : asc }
  3.         , follow: MasterListRowInput = null ): [MasterListRow]!
  4. }
  5.  
  6.  
  7. type MasterListRow {
  8.  
  9.     masterListID: Int!
  10.     displayName: String!
  11.     itemNumber: String!
  12.     description: String!
  13.  
  14.     casePack: String
  15.     department: String
  16.     bucket: String
  17.     price: Float
  18.  
  19.     orderQty: Int
  20.  
  21.     orderId: ID
  22.     lastWeekQuantity: Int
  23.     inventory: Int
  24. }
  25.  
  26.  
  27. input MasterListRowInput {
  28.     masterListID: Int!
  29.     displayName: String!
  30.     itemNumber: String!
  31.     description: String!
  32.  
  33.     casePack: String
  34.     department: String
  35.     bucket: String
  36.     price: Float
  37.  
  38.     orderQty: Int
  39.     orderId: Int
  40.     lastWeekQuantity: Int
  41.     inventory: Int
  42. }
  43.  
  44.  
  45. # only one field/value pair should be set.
  46. # only one value defines sorting order.
  47. input MLRowsOrderByInput {
  48.     displayName: Sort
  49.     itemNumber: Sort
  50.     description: Sort
  51.     casePack: Sort
  52.     price: Sort
  53.     orderQty: Sort
  54.     lastWeekQuantity: Sort
  55. }
  56.  
  57.  
  58. enum Sort {
  59.     asc
  60.     desc
  61. }
  62.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement