如何在 apollo 查询中添加排序参数?
这是我的客户端组件.tsx
const { data, loading } = useQuery(GET_ALL_SHIPMENTS);
和查询.tsx
import { gql } from "@apollo/client"
export const GET_ALL_SHIPMENTS = gql`
query getAllShipments {
getAllShipments{
id
title
description
}
}
`;