UnlyEd/next-right-now-admin

View on GitHub
src/types/BuiltQuery.ts

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * Defined in node_modules/@unly/ra-data-graphql-prisma/src/buildQuery.ts
 * But aren't defined/exported and must be re-declared here to be usable in our project
 */
import { DocumentNode } from 'graphql';

// TODO Types aren't completely defined, to improve
export type BuiltQuery = {
  query: DocumentNode;
  variables: {
    [key: string]: any;
    where?: {
      [key: string]: any;
    };
    data?: {
      [key: string]: any;
    };
  };
  parseResponse: Function;
}