From af8dba7f165c6cf562f25da31cbe3a962c36ba20 Mon Sep 17 00:00:00 2001 From: Grzegorz Leoniec Date: Fri, 5 Oct 2018 14:53:11 +0200 Subject: [PATCH] updated readme --- README.md | 18 ++++++++++++++++++ src/schema.graphql | 4 ++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7ab257aeb..eb0bc561d 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,13 @@ run Neo4j in one of the [many cloud options](https://neo4j.com/developer/guide-c or [spin up Neo4j in a Docker container](https://neo4j.com/developer/docker/). Just be sure to update the Neo4j connection string and credentials accordingly in `.env`. +## Mocking API Results + +Alternatively you can just mock all responses from the api which let +you build a frontend application without running a neo4j instance. + +Just set `MOCK=true` inside `.env` or pass it on application start. + ## Deployment You can deploy to any service that hosts Node.js apps, but [Zeit Now](https://zeit.co/now) @@ -91,3 +98,14 @@ yarn seedDb # -or- npm run seedDb ``` + +## Todo`s + +- [ ] add jwt authentication +- [ ] get directives working correctly (@toLower, @auth, @role, etc.) +- [ ] check if search is working +- [ ] check if sorting is working +- [ ] check if pagination is working +- [ ] check if upload is working (using graphql-yoga?) +- [ ] evaluate middleware +- [ ] ignore Posts and Comments by blacklisted Users diff --git a/src/schema.graphql b/src/schema.graphql index 0e4e2652b..497d1e4aa 100644 --- a/src/schema.graphql +++ b/src/schema.graphql @@ -13,12 +13,12 @@ enum UserGroupEnum { type WrittenPost @relation(name: "WROTE") { from: User to: Post - timestamp: Int + timestamp: Int # TODO: change that to custom Date Type } type WrittenComment @relation(name: "WROTE") { from: User to: Comment - timestamp: Int + timestamp: Int # TODO: change that to custom Date Type } type User {