How to use graphiql-explorer - 4 common examples

To help you get started, we’ve selected a few graphiql-explorer 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 hasura / graphql-engine / console / src / components / Services / ApiExplorer / OneGraphExplorer / utils.js View on Github external
export const getDefaultScalarArgValue = (parentField, arg, argType) => {
  return GraphiQLExplorer.defaultValue(argType);
};
github OneGraph / graphiql-explorer-example / src / CustomArgs.js View on Github external
.includes('DESC')
        ) {
          return {kind: 'EnumValue', value: 'DESC'};
        } else if (
          arg.name === 'field' &&
          argType
            .getValues()
            .map(x => x.name)
            .includes('CREATED_AT')
        ) {
          return {kind: 'EnumValue', value: 'CREATED_AT'};
        }
      }
      return GraphiQLExplorer.defaultValue(argType);
  }
  return GraphiQLExplorer.defaultValue(argType);
}
github hasura / learn-graphql / services / graphiql / src / components / ApiExplorer / onegraphUtils.js View on Github external
export const getDefaultScalarArgValue = (parentField, arg, argType) => {
  return GraphiQLExplorer.defaultValue(argType);
};
github GraphQLAPI / graphql-api-for-wp / blocks / graphiql-with-explorer / src / CustomArgs.js View on Github external
.includes("DESC")
        ) {
          return { kind: "EnumValue", value: "DESC" };
        } else if (
          arg.name === "field" &&
          argType
            .getValues()
            .map(x => x.name)
            .includes("CREATED_AT")
        ) {
          return { kind: "EnumValue", value: "CREATED_AT" };
        }
      }
      return GraphiQLExplorer.defaultValue(argType);
  }
  return GraphiQLExplorer.defaultValue(argType);
}

graphiql-explorer

Interactive explorer plugin for GraphiQL.

MIT
Latest version published 3 years ago

Package Health Score

57 / 100
Full package analysis

Popular graphiql-explorer functions

Similar packages