fix: remove aux query to get customer information related with individual discounts
This commit is contained in:
parent
310c9eb009
commit
e837ee3e7a
2 changed files with 1 additions and 3 deletions
|
|
@ -10,8 +10,7 @@ const resolvers = {
|
|||
Query: {
|
||||
customers: (...[, { phone, name, address, id }]) => customers.getCustomersList(phone, name, address, id),
|
||||
customer: (...[, { customerId }]) => customers.getCustomerById(customerId),
|
||||
customerFilters: () => filters.customer(),
|
||||
getCustomersWithDiscounts: (...[, { discounts }]) => loyalty.getCustomersWithDiscounts(discounts)
|
||||
customerFilters: () => filters.customer()
|
||||
},
|
||||
Mutation: {
|
||||
setCustomer: (root, { customerId, customerInput }, context, info) => {
|
||||
|
|
|
|||
|
|
@ -59,7 +59,6 @@ const typeDef = gql`
|
|||
customers(phone: String, name: String, address: String, id: String): [Customer] @auth
|
||||
customer(customerId: ID!): Customer @auth
|
||||
customerFilters: [Filter] @auth
|
||||
getCustomersWithDiscounts(discounts: [IndividualDiscountInput]): [Customer] @auth
|
||||
}
|
||||
|
||||
type Mutation {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue