From b7674e327887507ea69c30630bd0272e6ee3a9ae Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Sun, 17 Jan 2021 08:36:11 +0200 Subject: [PATCH] Fixed TODO list --- app/controllers/api/graphql.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/controllers/api/graphql.php b/app/controllers/api/graphql.php index c97bc1de0b..3959e4456a 100644 --- a/app/controllers/api/graphql.php +++ b/app/controllers/api/graphql.php @@ -11,9 +11,10 @@ use Utopia\App; * 1. Map all objects, object-params, object-fields * 2. Parse GraphQL request payload (use: https://github.com/webonyx/graphql-php) * 3. Route request to relevant controllers (of REST API?) / resolvers and aggergate data - * 4. Handle errors if any - * 5. Returen JSON response - * 6. Write tests! + * 4. Handle scope authentication + * 5. Handle errors + * 6. Return response + * 7. Write tests! * * Demo * curl -H "Content-Type: application/json" http://localhost/v1/graphql -d '{"query": "query { echo(message: \"Hello World\") }" }'