From 45354da421082fafcd6b7f5233f3ef368547c21f Mon Sep 17 00:00:00 2001 From: Wan <495709+wa0x6e@users.noreply.github.com> Date: Mon, 26 Aug 2024 19:56:37 +0900 Subject: [PATCH] feat: add `verified` field to SpacesWhere (#914) * feat: add `verified` field to SpacesWhere * fix: use strict equality * fix: remove redundant check --- src/graphql/helpers.ts | 2 +- src/graphql/schema.gql | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/graphql/helpers.ts b/src/graphql/helpers.ts index 712a916e..ecc12007 100644 --- a/src/graphql/helpers.ts +++ b/src/graphql/helpers.ts @@ -241,7 +241,7 @@ export function buildWhereQuery( export async function fetchSpaces(args) { const { first = 20, skip = 0, where = {} } = args; - const fields = { id: 'string', created: 'number' }; + const fields = { id: 'string', created: 'number', verified: 'boolean' }; if ('controller' in where) { if (!where.controller) return []; diff --git a/src/graphql/schema.gql b/src/graphql/schema.gql index 06aa277e..e7276f56 100644 --- a/src/graphql/schema.gql +++ b/src/graphql/schema.gql @@ -124,6 +124,7 @@ input SpaceWhere { strategy: String plugin: String controller: String + verified: Boolean } input RankingWhere {