XYOracleNetwork/sdk-diviner-nodejs

View on GitHub
src/query/plugin/query/xyo-supported-resolver.ts

Summary

Maintainability
A
3 hrs
Test Coverage
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable @typescript-eslint/no-unused-vars */
import { XyoQuery } from '../../xyo-query'

export class XyoSupportedResolver {
  public static query = 'querySupport: [String!]!'
  public static queryName = 'querySupport'
  private supported: XyoQuery

  constructor(supported: XyoQuery) {
    this.supported = supported
  }

  public async resolve(obj: any, args: any): Promise<any> {
    return this.supported.getSupported()
  }
}