Ngann / KB-Heroku

0 stars 0 forks source link

Edit vendors #10

Closed Ngann closed 5 years ago

Ngann commented 5 years ago

Expanded Edit Vendor Component to update all available fields.

  1. Update graphQL schema
  2. Update Resolver
  3. Update Frontend Form

function updateVendor(parent, args, context) { return context.prisma.updateVendor({ where: { id: args.id}, data: { name: args.name, contact: args.contact, address: args.address, addressTwo: args.addressTwo, city: args.city, state: args.state, country: args.country, phone: args.phone, } }) }