gql小程序提交更新接口


const gql = require('../../graphql/graphql');



    gql().mutate({
      mutation: ` mutation createUserShop($title: String!,$address: String!,$shopTime: String, $longitude: String!, $latitude: String!){
                  createUserShop(shop: {title: $title, address: $address, shopTime: $shopTime, longitude: $longitude, latitude: $latitude}){
                    code
                    msg
                  }
             }
      `,
      variables: {
        title: this.data.title,
        address: this.data.address,
        shopTime: this.data.shopTime,
        longitude: this.data.location.longitude.toString(),
        latitude: this.data.location.latitude.toString()
      }
    })
阅读量: 959
发布于:
修改于: