<commit_before># GraphQL Plug

[![Build Status](https://travis-ci.org/graphql-elixir/plug_graphql.svg)](https://travis-ci.org/graphql-elixir/plug_graphql)
[![Public Slack Discussion](https://graphql-slack.herokuapp.com/badge.svg)](https://graphql-slack.herokuapp.com/)

`plug_graphql` is a [Plug](https://github.com/elixir-lang/plug) integration for the [GraphQL Elixir](https://github.com/graphql-elixir/graphql-elixir) implementation of Facebook's GraphQL.

This [Plug](https://github.com/elixir-lang/plug) allows you to easily mount a GraphQL endpoint in Phoenix. This example project shows you how:

* [Phoenix GraphQL example project](https://github.com/graphql-elixir/hello_graphql_phoenix)


## Installation

  1. Make a new Phoenix app, or add it to your existing app.

    ```sh
    mix phoenix.new hello_graphql
    cd hello_graphql
    ```

    ```sh
    git clone https://github.com/graphql-elixir/hello_graphql_phoenix
    ```

  2. Add `plug_graphql` to your list of dependencies and applications in `mix.exs` and install the package with `mix deps.get`.

    ```elixir<commit_msg>Update links for rename of graphql-elixir to graphql<commit_after># GraphQL Plug

[![Build Status](https://travis-ci.org/graphql-elixir/plug_graphql.svg)](https://travis-ci.org/graphql-elixir/plug_graphql)
[![Public Slack Discussion](https://graphql-slack.herokuapp.com/badge.svg)](https://graphql-slack.herokuapp.com/)

`plug_graphql` is a [Plug](https://github.com/elixir-lang/plug) integration for the [GraphQL Elixir](https://github.com/graphql-elixir/graphql) implementation of Facebook's GraphQL.

This [Plug](https://github.com/elixir-lang/plug) allows you to easily mount a GraphQL endpoint in Phoenix. This example project shows you how:

* [Phoenix GraphQL example project](https://github.com/graphql-elixir/hello_graphql_phoenix)


## Installation

  1. Make a new Phoenix app, or add it to your existing app.

    ```sh
    mix phoenix.new hello_graphql
    cd hello_graphql
    ```

    ```sh
    git clone https://github.com/graphql-elixir/hello_graphql_phoenix
    ```

  2. Add `plug_graphql` to your list of dependencies and applications in `mix.exs` and install the package with `mix deps.get`.

    ```elixir
{'fraction_non_alphanumeric': 0.12961296129612962, 'fraction_numerical': 0.0018001800180018, 'mean_word_length': 4.318181818181818, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 18, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1101762', 'n_tokens_mistral': 767, 'n_tokens_neox': 743, 'n_words': 180}