@oridune/epic-odm
Advanced tools
Comparing version 1.0.16 to 1.0.17
{ | ||
"name": "@oridune/epic-odm", | ||
"version": "1.0.16", | ||
"version": "1.0.17", | ||
"description": "Install 1 ODM and code once with any database driver.", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -16,7 +16,7 @@ import { BaseModel } from "./base"; | ||
static GraphQLObjectType?: GraphQLObjectType; | ||
static new<M extends typeof BaseModel>(this: M, data: ModelPayload<M["prototype"]>): M["prototype"]; | ||
static new<M extends typeof BaseModel>(this: M, data: ModelPayload<Required<M["prototype"]>>): M["prototype"]; | ||
static toGraphQLObjectType<M extends typeof BaseModel>(this: M): GraphQLObjectType; | ||
static toGraphQLObjectTypeList<M extends typeof BaseModel>(this: M): GraphQLList<GraphQLObjectType>; | ||
static create<M extends typeof BaseModel>(this: M, payload: ModelPayload<M["prototype"]>[]): DatabaseCommand<M, "create">; | ||
static createOne<M extends typeof BaseModel>(this: M, payload: ModelPayload<M["prototype"]>): DatabaseCommand<M, "createOne">; | ||
static create<M extends typeof BaseModel>(this: M, payload: ModelPayload<Required<M["prototype"]>>[]): DatabaseCommand<M, "create">; | ||
static createOne<M extends typeof BaseModel>(this: M, payload: ModelPayload<Required<M["prototype"]>>): DatabaseCommand<M, "createOne">; | ||
static find<M extends typeof BaseModel>(this: M, aggregate?: Aggregation<M["prototype"]> | BaseModel[] | BaseModel): DatabaseCommand<M, "find">; | ||
@@ -23,0 +23,0 @@ static findOne<M extends typeof BaseModel>(this: M, aggregate?: Aggregation<M["prototype"]> | BaseModel[] | BaseModel): DatabaseCommand<M, "findOne">; |
94917