| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- const productbyprops = `
- query productbyprops($category: String, $updatedAt: String, $name: String, $createdAt: String, $status: String, $intro: String, $price: Float, $img: String, $stock: Int) {
- productbyprops: product_by_props(category: $category updatedAt: $updatedAt name: $name createdAt: $createdAt status: $status intro: $intro price: $price img: $img stock: $stock) {
- category
- updatedAt
- unit
- name
- createdAt
- status
- id
- intro
- price
- img
- stock
- }
- }
- `
- const productbyid = `
- query productbyid($id: ID) {
- productbyid: product_by_id(id: $id) {
- category
- updatedAt
- unit
- name
- createdAt
- status
- id
- intro
- price
- img
- stock
- }
- }
- `
- const cart_by_userid = `
- query findUserCart($user_id:ID){
- cartList:userCart_by_props(user_id:$user_id){
- count
- createdAt
- id
- product_id{
- category
- createdAt
- img
- intro
- name
- price
- status
- stock
- unit
- updatedAt
- }
- }
- }
- `
- const userAddressbyprops = `
- query userAddressbyprops($address: String, $updatedAt: String, $telephone: String, $default: Int, $city: String, $username: String, $postcode: String, $createdAt: String, $deletedAt: String, $user_id: ID, $area: String, $province: String) {
- userAddressbyprops: userAddress_by_props(address: $address updatedAt: $updatedAt telephone: $telephone
- default: $default city: $city username: $username postcode: $postcode createdAt: $createdAt deletedAt: $deletedAt user_id: $user_id area: $area province: $province) {
- address
- updatedAt
- telephone
- default
- city
- username
- postcode
- createdAt
- deletedAt
- id
- user_id {
- email
- updatedAt
- password
- telephone
- username
- createdAt
- openid
- id
- }
- area
- province
- }
- }
- `
- export {
- productbyprops,
- productbyid,
- cart_by_userid,
- userAddressbyprops
- }
|