@@ -496,6 +496,66 @@ extend type Query {
496496 id : ID !
497497 ): Account
498498
499+ "Query to get a filtered list of Accounts"
500+ filterAccounts (
501+ "Shop ID"
502+ shopId : ID ! ,
503+
504+ "Input Conditions for fliter (use either 'any' or 'all' not both)"
505+ conditions : FilterConditionsInput ,
506+
507+ "Return only results that come after this cursor. Use this with `first` to specify the number of results to return."
508+ after : ConnectionCursor ,
509+
510+ "Return only results that come before this cursor. Use this with `last` to specify the number of results to return."
511+ before : ConnectionCursor ,
512+
513+ "Return at most this many results. This parameter may be used with either `after` or `offset` parameters."
514+ first : ConnectionLimitInt ,
515+
516+ "Return at most this many results. This parameter may be used with the `before` parameter."
517+ last : ConnectionLimitInt ,
518+
519+ "Return only results that come after the Nth result. This parameter may be used with the `first` parameter."
520+ offset : Int
521+
522+ "Return results sorted in this order"
523+ sortOrder : SortOrder = desc ,
524+
525+ "By default, accounts are sorted by createdAt. Set this to sort by one of the other allowed fields"
526+ sortBy : AccountSortByField = createdAt
527+ ): AccountConnection
528+
529+ "Query to get a filtered list of Customers"
530+ filterCustomers (
531+ "Shop ID"
532+ shopId : ID ! ,
533+
534+ "Input Conditions for fliter (use either 'any' or 'all' not both)"
535+ conditions : FilterConditionsInput ,
536+
537+ "Return only results that come after this cursor. Use this with `first` to specify the number of results to return."
538+ after : ConnectionCursor ,
539+
540+ "Return only results that come before this cursor. Use this with `last` to specify the number of results to return."
541+ before : ConnectionCursor ,
542+
543+ "Return at most this many results. This parameter may be used with either `after` or `offset` parameters."
544+ first : ConnectionLimitInt ,
545+
546+ "Return at most this many results. This parameter may be used with the `before` parameter."
547+ last : ConnectionLimitInt ,
548+
549+ "Return only results that come after the Nth result. This parameter may be used with the `first` parameter."
550+ offset : Int
551+
552+ "Return results sorted in this order"
553+ sortOrder : SortOrder = desc ,
554+
555+ "By default, customers are sorted by createdAt. Set this to sort by one of the other allowed fields"
556+ sortBy : AccountSortByField = createdAt
557+ ): AccountConnection
558+
499559 "Returns accounts optionally filtered by account groups"
500560 accounts (
501561 "Return only accounts in any of these groups"
0 commit comments