Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graphql-idl-parser

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-idl-parser

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

GraphQL-IDL-Parser

This gem will accept a GraphQL IDL file and parse it. It uses gjtorikian/graphql-idl-parser as the mechanism for this, which is written in Rust, making this blazing fast.

Build Status

Installation

Add this line to your application's Gemfile:

gem 'graphql-idl-parser'

And then execute:

$ bundle

Or install it yourself as:

$ gem install graphql-idl-parser

Usage

# feed it a file
parser = GraphQL::IDLParser.new(filename: filename)

# or feed it a string
parser = GraphQL::IDLParser.new(schema: contents)

# execute!
results = parser.process

Benchmarks

Check it out with bundle exec rake benchmark:

Warming up --------------------------------------
           pure ruby     1.000  i/100ms
           this gem      7.000  i/100ms
Calculating -------------------------------------
           pure ruby      6.527  (± 0.0%) i/s -     33.000  in   5.082540s
           this gem      73.511  (± 5.4%) i/s -    371.000  in   5.064868s

Comparison:
           this gem :       73.5 i/s
           pure ruby:        6.5 i/s - 11.26x  slower

FAQs

Package last updated on 05 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc