How to use the hops-config.graphqlUri function in hops-config

To help you get started, we’ve selected a few hops-config examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github xing / hops / packages / graphql / __tests__ / graphql.spec.js View on Github external
function generateFragmentTypes() {
    var hopsConfig = require('hops-config');
    var options = {
      schemaFile: hopsConfig.graphqlSchemaFile,
      graphqlUri: hopsConfig.graphqlUri,
      headers: [],
    };
    return require('../lib/fragments')(options);
  }
github xing / hops / packages / graphql / lib / common.js View on Github external
createLink: function() {
    return new ApolloLink.HttpLink({
      uri: hopsConfig.graphqlUri,
    });
  },
  createCache: function() {