diff --git a/README.md b/README.md index 90f5dff0..a91d5fca 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,8 @@ name :: SProxy "name" name = SProxy ``` -You can see this full example with graphQL server in the example directory. +You can see this full example with graphQL server in the examples/simple directory. To keep schemas in sync, this library includes codegen functionality that introspects a graphql server and generates the code for the purescript schema type. You have schema and query codegen tools at this site: https://gql-query-to-purs.herokuapp.com/ + +API documentation at https://pursuit.purescript.org/packages/purescript-graphql-client \ No newline at end of file diff --git a/example/.gitignore b/examples/1-simple/.gitignore similarity index 100% rename from example/.gitignore rename to examples/1-simple/.gitignore diff --git a/example/packages.dhall b/examples/1-simple/packages.dhall similarity index 100% rename from example/packages.dhall rename to examples/1-simple/packages.dhall diff --git a/example/server.js b/examples/1-simple/server.js similarity index 100% rename from example/server.js rename to examples/1-simple/server.js diff --git a/example/spago.dhall b/examples/1-simple/spago.dhall similarity index 87% rename from example/spago.dhall rename to examples/1-simple/spago.dhall index fdec55e5..91a9578f 100644 --- a/example/spago.dhall +++ b/examples/1-simple/spago.dhall @@ -27,5 +27,5 @@ You can edit this file as you like. , "variant" ] , packages = ./packages.dhall -, sources = [ "src/**/*.purs", "test/**/*.purs", "../src/**/*.purs" ] +, sources = [ "src/**/*.purs", "test/**/*.purs", "../../src/**/*.purs" ] } diff --git a/example/src/Main.purs b/examples/1-simple/src/Main.purs similarity index 100% rename from example/src/Main.purs rename to examples/1-simple/src/Main.purs diff --git a/example/test/Main.purs b/examples/1-simple/test/Main.purs similarity index 100% rename from example/test/Main.purs rename to examples/1-simple/test/Main.purs