Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
  __tests__
  dist
  src
  __tests__
  .prettierrc
  Makefile
  README.md
  index.js
  jest.config.js
  package.json
  tsconfig.json
  tslint.json
Size: Mime:
  README.md

babel-plugin-transform-optimize-graphql

example

query StoreLocatorQuery($latitude: Float!, $longitude: Float!) {
  storeLocator(latitude: $latitude, longitude: $longitude) {
    type
    offset
    limit
    storeinfo {
      identifier
      country
      distance
      city
      address1
      latitude
      additionalinfo {
        label
        value
      }
      zipcode
      altidentifier
      phone
      name
      state
      distanceunit
      email
      longitude
      workinghours {
        opentime
        closetime
        day
        openforbussiness
      }
    }
  }
}

=>

storeLocator(latitude: $latitude, longitude: $longitude) { type offset limit storeinfo { identifier country distance city address1 latitude additionalinfo { label value } zipcode altidentifier phone name state distanceunit email longitude workinghours { opentime closetime day openforbussiness } }  }
mutation RegisterGuest {
  registerGuest {
    responseCode
    type
    properties {
      state {
        statuscode
        starttime
        status
      }
    }
    cookies
  }
}

=>

mutation RegisterGuest { registerGuest { responseCode type properties { state { statuscode starttime status } } cookies }}