Uploading the Repo
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
const Query = {
|
||||
mainCards: (parent, args, { mainCards }) => mainCards,
|
||||
animals: (parent, args, { animals }) => animals,
|
||||
animal: (parent, args, { animals }) =>
|
||||
animals.find((animal) => animal.slug === args.slug),
|
||||
categories: () => categories,
|
||||
category: (parent, args, { categories }) =>
|
||||
categories.find((category) => category.slug === args.slug),
|
||||
};
|
||||
module.exports = { Query };
|
||||
Reference in New Issue
Block a user