SiteTrendConnection is an interface representing the connection of site trends. It includes the page information and the edges and nodes of the site trends each having their own properties.

interface SiteTrendConnection {
    edges: {
        node: SiteTrend;
    }[];
    nodes: SiteTrend[];
    pageInfo: {
        currentPage: number;
        hasNextPage: boolean;
        lastPage: number;
        perPage: number;
        total: number;
    };
}

Properties

Properties

edges: {
    node: SiteTrend;
}[]

edges is an array representing the edges of the site trends. Each edge includes a node which is a SiteTrend.

Type declaration

nodes: SiteTrend[]

nodes is an array representing the nodes of the site trends. Each node is a SiteTrend.

pageInfo: {
    currentPage: number;
    hasNextPage: boolean;
    lastPage: number;
    perPage: number;
    total: number;
}

pageInfo is an object representing the page information of the site trends. It includes the total number of pages, the number of items per page, the current page number, the last page number, and whether there is a next page.

Type declaration

  • currentPage: number
  • hasNextPage: boolean
  • lastPage: number
  • perPage: number
  • total: number