Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
rating
}`,
resolver: async () => {
const data = [{ title: 'A movie', rating: 2 }, { title: 'Another movie', rating: 4 }];
return data.map(({ title, rating }) => ({ title, rating }));
},
},
value: {
type: Content,
blocks: [
...(cloudinaryAdapter
? [[CloudinaryImage.blocks.image, { adapter: cloudinaryAdapter }]]
: []),
...(embedAdapter ? [[OEmbed.blocks.oEmbed, { adapter: embedAdapter }]] : []),
...(unsplash.accessKey
? [[Unsplash.blocks.unsplashImage, { attribution: 'KeystoneJS', ...unsplash }]]
: []),
Content.blocks.blockquote,
Content.blocks.orderedList,
Content.blocks.unorderedList,
Content.blocks.link,
Content.blocks.heading,
],
},
},
adminConfig: {
defaultPageSize: 20,
defaultColumns: 'name, status',
defaultSort: 'name',
},
labelResolver: async (item, args, context, { schema }) => {
if (item.author) {