Help! Got this error message: GraphQLError: Enum "AlertSortFields" cannot represent value: "id"
#348
Unanswered
kasir-barati
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Does anyone else experience this issue too? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys,
I was tweaking with the
defaultSort
option in@CursorConnection
and apparently something is not to GraphQL's taste. And I do not know what is wrong exactly. Can you help me to diagnose it so I can understand what is wrong with it? Here is the code:https://github.com/kasir-barati/nestjs-materials/blob/a8d0e2f26f0e487fbe051479532134a68221f7bb/typeorm/apps/botprobe-nest/src/alert-type/dto/alert-type.dto.ts#L17-L23
The interesting part is that the exact same option works just fine for the
@FilterableRelation
:https://github.com/kasir-barati/nestjs-materials/blob/a8d0e2f26f0e487fbe051479532134a68221f7bb/typeorm/apps/botprobe-nest/src/alert/dto/alert.dto.ts#L16-L22
Reproduce It
pnpm i --frozen-lockfile
.nx serve botprobe-nest
.HELP WANTED 🥹 😂 🙂.
Note
I was not sure if this counts as a bug for this lib, thus I did not open an issue for it. But will open one if it turns out it is.
Beta Was this translation helpful? Give feedback.
All reactions