Move API fields to file
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user