Added graphql support #162-2

This commit is contained in:
2023-02-09 16:36:50 +01:00
parent 6aca981fd1
commit f7c27b77ee
6 changed files with 91 additions and 47 deletions

View File

@@ -0,0 +1,4 @@
export interface Page {
pageIndex?: number;
pageSize?: number;
}

View File

@@ -0,0 +1,4 @@
export interface Sort {
sortColumn?: string;
sortDirection?: string;
}

View File

@@ -1,8 +1,8 @@
export class Queries {
static serverInfoQuery = `
query {
query ServerInfo($filter: ServerFilter, $page: Page, $sort: Sort) {
serverCount
servers {
servers(filter: $filter, page: $page, sort: $sort) {
id
name
iconURL

View File

@@ -0,0 +1,8 @@
import { Page } from "./filter/page.model";
import { Sort } from "./filter/sort.model";
export interface Variables {
filter?: object;
page?: Page;
sort?: Sort;
}