26 Commits

Author SHA1 Message Date
Jayden Seric
86e5609e60 Update supported Node.js versions and dependencies, implement TypeScript JSDoc types. 2022-05-24 00:06:08 +10:00
Jayden Seric
a56972742c Remove incorrect error handling in the API server listen callback. 2022-05-23 15:09:55 +10:00
Jayden Seric
4a6bb2c992 Simplify ESLint dev dependencies and config, drop JSX syntax, use .mjs files. 2022-05-20 11:00:12 +10:00
Jayden Seric
783873a6be Configure Prettier option singleQuote to the default, false. 2021-12-06 23:35:31 +11:00
Jayden Seric
826f838df5 Update the example API. 2021-12-06 23:18:50 +11:00
Jayden Seric
aed05449dc Update API dependencies and migrate to Apollo Server v3. 2021-08-03 11:00:31 +10:00
Jayden Seric
8a46155f91 Simplify the example by removing the DB.
This avoids trying to figure out how to fix concurrent writes conflicting with `lowdb` v2, see: https://github.com/typicode/lowdb/issues/478 .
2021-06-11 17:24:42 +10:00
Jayden Seric
3db018dcc4 Modernize the API. 2021-06-11 15:23:05 +10:00
Jayden Seric
3fff0d9230 Convert the API from CJS to ESM. 2021-05-13 20:18:46 +10:00
Jayden Seric
f421deaabd Refactor the GraphQL API. 2019-10-10 10:54:16 +11:00
Jayden Seric
e236fa098a Remove redundant ESLint disable comments. 2019-10-09 14:54:59 +11:00
Jayden Seric
884f671997 Update Apollo Server to v2.3, re-enable build in file uploads.
Apollo Server v2.3+ uses graphql-upload, see https://github.com/apollographql/apollo-server/pull/2054 .
2018-12-19 11:23:23 +11:00
Jayden Seric
ae519d9800 Lint fixes. 2018-11-29 07:45:05 +11:00
Jayden Seric
1adea5abf6 Drop file extension from imports. 2018-10-29 21:36:22 +11:00
Jayden Seric
921aa517ba Use graphql-upload instead of the outdated apollo-server setup.
For context see: https://github.com/jaydenseric/graphql-upload/issues/109.
2018-10-29 21:35:56 +11:00
Jayden Seric
de11cb3c47 Update to Apollo Server v2. 2018-08-14 18:57:57 +10:00
Jayden Seric
81506cd76c Use apollo-server-koa directly instead of the graphql-server-koa alias.
This removes an unessesary package from node_modules.
2018-02-06 13:08:24 +11:00
Jayden Seric
20e79ba465 Simplified server code. 2018-02-06 13:01:22 +11:00
Jayden Seric
f2cdf0fbba Update apollo-upload-server and use native modules. 2018-01-30 04:13:55 +11:00
Jayden Seric
bba0f99ed6 Server setup tweak. 2018-01-29 14:02:35 +11:00
Jayden Seric
1aa945c986 Code tidy. 2018-01-15 16:59:15 +11:00
Jayden Seric
3f33fb16d8 Support latest client and server alphas.
Also:

- Update deps.
- Lock `apollo-cache-inmemory` to v1.0.0 since newer versions are buggy.
- New file naming approach for stored uploads.
- More intuitive mixed ESM/CJS module imports in the API.
2017-11-20 00:40:10 +11:00
Jayden Seric
a7cf818e15 Update middleware to match apollo-upload-server readme instructions. 2017-11-18 19:56:56 +11:00
Jayden Seric
2cf16a48af Simpler server start message. 2017-11-18 19:50:19 +11:00
Jayden Seric
e38833bbc0 Added a fix script to the API. 2017-11-08 14:57:36 +11:00
Jayden Seric
9420391054 Using ESM instead of Webpack for the API. 2017-10-02 16:50:25 +11:00