Steve Anthony Luzquiños Agama
Emmanuel Rodríguez
Hola 👋 También es posible anexarlo mediante definición en tu schema de GraphQL:
extend type Query { account(id: ID!): Account! accounts(skip: Int, take: Int, where: FilterAccount): [Account!]! }
Sin embargo, te recomiendo el uso de una interfaz para tus filtros:
export interface Filters { skip: number take: number where: { AND?: Array<{ [key: string]: any }> OR?: Array<{ [key: string]: any }> [key: string]: any } }