Abstracted fragments and curation. Using GraphQL for tags.

This commit is contained in:
2019-12-16 05:30:25 +01:00
parent f4c2e6c08c
commit 6950a76cb5
10 changed files with 260 additions and 159 deletions

View File

@@ -143,8 +143,7 @@ async function scrapeReleases() {
});
if (argv.save) {
const { movies } = await storeReleases(scrapedNetworks.flat(2));
console.log(movies);
await storeReleases(scrapedNetworks.flat(2));
}
}

View File

@@ -20,6 +20,8 @@ const schemaExtender = makeExtendSchemaPlugin(_build => ({
resolvers: {
Actor: {
age(parent, _args, _context, _info) {
console.log(parent);
if (!parent.birthdate) return null;
return moment().diff(parent.birthdate, 'years');