Skip to content

graphql-erlang/example-usage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Erlang GraphQL Example

Just run:

    rebar3 auto

Now you can use included GraphiQL client at http://127.0.0.1:8088

You can find schemas at src/graphql. RootObject in example_schema.erl

calculator

Simple example :)

Request:

{
  calculator(a:23 b: 150) {
    plus
    minus
    devide
    multiply
  }
}

Response:

{
  "data": {
    "calculator": {
      "multiply": 3450,
      "devide": 0.15333333333333332,
      "minus": -127,
      "plus": 173
    }
  },
  "errors": []
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published