2024-08-01 22:50:01 +03:00

31 lines
539 B
TypeScript

import { gql } from "@apollo/client";
export const GET_ALL_VIDEOS = gql`
query videos(
$first: Int
$skip: Int
$orderBy: Video_orderBy
$orderDirection: OrderDirection
$where: Video_filter
) {
videos(
first: $first
skip: $skip
orderBy: $orderBy
orderDirection: $orderDirection
where: $where
) {
id
hash
title
description
location
category
thumbnailHash
date
author
createdAt
}
}
`;