You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Without @OrderBy() orderBy: OrderByItem[], work normally
node give me error:
/home/node/app/node_modules/graphql-schema-decorator/lib/type-factory/order-by.type-factory.js:56
if (fieldReturnType.prototype == null) {
^
TypeError: Cannot read property 'prototype' of undefined
at fieldMetadataList.forEach.def (/home/node/app/node_modules/graphql-schema-decorator/lib/type-factory/order-by.type-factory.js:56:41)
at Array.forEach ()
at Function.orderByFactory (/home/node/app/node_modules/graphql-schema-decorator/lib/type-factory/order-by.type-factory.js:54:35)
at Object.fieldTypeFactory (/home/node/app/node_modules/graphql-schema-decorator/lib/type-factory/field.type-factory.js:191:55)
at fieldMetadataList.reduce (/home/node/app/node_modules/graphql-schema-decorator/lib/type-factory/object.type-factory.js:37:40)
at Array.reduce ()
at metadata_builder_1.getMetadataBuilder.buildObjectTypeMetadata.map.metadata (/home/node/app/node_modules/graphql-schema-decorator/lib/type-factory/object.type-factory.js:36:42)
at Array.map ()
at Object.objectTypeFactory (/home/node/app/node_modules/graphql-schema-decorator/lib/type-factory/object.type-factory.js:17:10)
at convertType (/home/node/app/node_modules/graphql-schema-decorator/lib/type-factory/field.type-factory.js:44:48)
at Object.fieldTypeFactory (/home/node/app/node_modules/graphql-schema-decorator/lib/type-factory/field.type-factory.js:190:23)
at fieldMetadatas.reduce (/home/node/app/node_modules/graphql-schema-decorator/lib/type-factory/schema.type-factory.js:40:63)
at Array.reduce ()
at metadatas.map.metadata (/home/node/app/node_modules/graphql-schema-decorator/lib/type-factory/schema.type-factory.js:39:31)
at Array.map ()
at getEntryObject (/home/node/app/node_modules/graphql-schema-decorator/lib/type-factory/schema.type-factory.js:36:30)
Lib version: 1.0.0-alpha9
Node: 9.5.0
The text was updated successfully, but these errors were encountered:
When i add
in my method
Without
@OrderBy() orderBy: OrderByItem[],
work normallynode give me error:
Lib version: 1.0.0-alpha9
Node: 9.5.0
The text was updated successfully, but these errors were encountered: