Files
files Query
Returns a paginated list of File objects, with optional filtering and ordering.
Arguments
Name
Type
Description
after
Cursor
Returns the elements in the list that come after the specified cursor
first
Int
Returns the first n elements from the list
before
Cursor
Returns the elements in the list that come before the specified cursor
last
Int
Returns the last n elements from the list
orderBy
FileOrder
Ordering options for Files returned from the connection
where
FileWhereInput
Filtering options for Files returned from the connection
Return Type
FileConnection! - A connection to a list of File objects with pagination information.
Usage Example
query {
files(
first: 10
orderBy: { direction: DESC, field: CREATED_AT }
where: { reftype: item }
) {
edges {
node {
id
name
contentType
size
}
cursor
}
pageInfo {
hasNextPage
endCursor
}
totalCount
}
}Last updated
Was this helpful?
