This provides a basic NodeJS example project that uses Aphrodite
and integrates GraphQL
.
See src/domain.aphro
for an example of how & GraphQL
extensions are used.
Note -- I'm a 1 man show at the moment and this is a WIP that is still buggy.
Known issues:
- Connections are not complete
- Connections return the wrong type! oops!
- Mutations are not implemented at all
- Custom root calls are not yet supported
- The schema is located in
src/domain.aphro
- A simple application is in
src/main.ts
GitPod: https://gitpod.io/#git@github.com:tantaman/aphrodite-graphql-starter.git
Or --
First, clone this repository
git clone git@github.com:tantaman/aphrodite-graphql-starter.git
Next, cd to aphrodite-graphql-starter
and install dependencies.
cd aphrodite-graphql-starter
npm install
The commands to build and run are the "demo app" are:
npm run build
npm run start
If you change the schema and want to re-generate the generated code, run
npm run aphro
For more info, see the Aphrodite
quickstart guide