From 57453182d00d005878b062dcf9f428dc2d6bc5bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=8C=82=E5=B3=B0?= Date: Mon, 10 Jul 2023 16:19:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8E=A5=E5=8F=A3=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __mocks__/graphqlMock.ts | 2 +- src/store/index.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/__mocks__/graphqlMock.ts b/__mocks__/graphqlMock.ts index 6a768ca..695531c 100644 --- a/__mocks__/graphqlMock.ts +++ b/__mocks__/graphqlMock.ts @@ -19,7 +19,7 @@ const mocks: MockedResponse>[] = [ request: { query: QUERY_CHECK_POINT, variables: { - filter: { + where: { entityName_in: ['Icon', 'IconLibrary'], createdAt_gt: moment().format('YYYY-MM-DD HH:mm:ss'), }, diff --git a/src/store/index.ts b/src/store/index.ts index 7d31d46..041800d 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -47,8 +47,8 @@ export const ALL_ICON_LIBRARIES = gql` `; export const QUERY_CHECK_POINT = gql` - query oplogs($filter: OplogFilter) { - oplogs(filter: $filter) { + query oplogs($where: OplogWhereInput) { + oplogs(where: $where) { id entityName operation @@ -59,7 +59,7 @@ export const QUERY_CHECK_POINT = gql` export const QUERY_LIBRARIES = gql` query libraries($ids: [ID]) { - libraries: iconLibraries(filter: { id_in: $ids }) { + libraries: iconLibraries(where: { id_in: $ids }) { id name description @@ -69,7 +69,7 @@ export const QUERY_LIBRARIES = gql` export const QUERY_ICONS = gql` query icons($ids: [ID]) { - icons(filter: { id_in: $ids }) { + icons(where: { id_in: $ids }) { id name tags @@ -307,7 +307,7 @@ class IconStore { const { data } = await this._client!.query({ query: QUERY_CHECK_POINT, variables: { - filter: { + where: { entityName_in: ['Icon', 'IconLibrary'], createdAt_gt: moment(pointIcon.version).format('YYYY-MM-DD HH:mm:ss'), },