description: 'Fullstack tutorial for GraphQL' }] // 1 let idCount = links.length const resolvers = { Query: { info: () => `This is the API of a Hackernews Clone` , feed: () => links, //Can use some repository to get information from DB }, Mutation: { // 2 post: (parent, args) => { const link = { id: `link-${idCount++}`, description: args.description, url: args.url, } links.push(link) return link } }, }