@@ -21,7 +21,7 @@ export type MonooseModelIndex = [
2121export type MongooseModelT = {
2222 modelName : string ,
2323 schema : MongooseModelSchemaT ,
24- create ( doc : Object | Object [ ] ) : Promise ,
24+ create ( doc : Object | Object [ ] ) : Promise < Object > ,
2525 findOne ( conditions : ?Object , projection ? : Object ) : MongooseQuery ,
2626 findById ( id : mixed , projection ? : Object , options ? : Object ) : MongooseQuery ,
2727 find ( conditions : ?Object , projection ? : Object , options ? : Object ) : MongooseQuery ,
@@ -52,7 +52,7 @@ export type ResolverNames = 'findById' | 'findByIds' | 'findOne' | 'findMany' |
5252 'createOne' | 'count' ;
5353
5454export type MongooseQuery = {
55- exec ( ) : Promise ,
55+ exec ( ) : Promise < any > ,
5656 where ( criteria : ObjectMap ) : MongooseQuery ,
5757 where ( fieldName : string , equalTo : string ) : MongooseQuery ,
5858 where ( fieldName : string ) : MongooseQuery ,
@@ -68,7 +68,7 @@ export type MongooseQuery = {
6868
6969export type MongoseDocument = {
7070 set ( values : ObjectMap ) : void ,
71- save ( ) : Promise ,
71+ save ( ) : Promise < Object > ,
7272}
7373
7474// RE-EXPORT graphql-compose definitions
0 commit comments