Move API fields to file

This commit is contained in:
2022-09-06 14:51:47 +02:00
parent 5ff82f4ee4
commit 3d7b859d12
3 changed files with 19 additions and 14 deletions

View File

@@ -43,6 +43,23 @@ export const getAssetUrlKey = (
}
/**
* GraphQL fields
*/
export const photoFields = `
title
slug
city
image {
id
title
width, height
}
date_taken
date_created
`
/**
* Get a Directus asset URL from parameters
*/