Martí Crespí
07/13/2022, 6:51 AMgraphql-scalars
package and I'm using like this
@Field(() => GraphQLScalars.BigIntResolver, {
nullable: true
})
lte?: bigint | undefined;
But when it's not null I recieved an error
"message": "Do not know how to serialize a BigInt"
Any approach to fix it or how serialize it properly?Martí Crespí
07/13/2022, 7:01 AMMartí Crespí
07/13/2022, 7:09 AMexport class EntityGroupBy {
@Field(() => String, {
nullable: false
})
name!: string;
@Field(() => Int, {
nullable: false
})
numCount!: number;
}
Martí Crespí
07/13/2022, 7:10 AMMartí Crespí
07/13/2022, 7:11 AMselect ct."name", count(*) "numCount"
from "Contract" c
inner join "ContractType" ct on c.type=ct.id
group by ct."name"
Jared Fraser
07/13/2022, 7:16 AMMartí Crespí
07/13/2022, 7:28 AM