How to use it with NestJS? #754
Replies: 3 comments 3 replies
-
And another question that I did not get an answer from your docs was this issue, discussed in Long story short it is trying to take into account the Relay Connection Pagination Spec and flatten them (not really flatten them, but rather giving a one point to each set of them. In practice it will give 1 point to |
Beta Was this translation helpful? Give feedback.
-
Side note: the doc is really short and it does not provide any sort of explanation. Like for example here it just says go and implement your workaround but the least you could do was to point out some issues, or posts on how to do that: https://escape.tech/graphql-armor/docs/configuration/apollo/#graphql-armor-event-are-fired-once-for-multiple-queries. Or about the config object there is little to no explanation: https://escape.tech/graphql-armor/docs/api/types/#config Am I missing something or is this how it should be? I am used to figure stuff out by reading docs but this lib does not have one to begin with IMO (Do not take it personally, I am just trying to communicate the issues I am facing right now as clearly as possible). |
Beta Was this translation helpful? Give feedback.
-
Just for those who wanted to see an example, check my repo:
Love to learn from your expertise. |
Beta Was this translation helpful? Give feedback.
-
I would love to know if you know how I can integrate this with my NestJS app. I have written a dummy NestJS app using
graphql-query-complexity
. You can see my Dev.to post here: https://dev.to/kasir-barati/graphql-query-complexity-nestjs-dataloader-2p2m.But now I thought oh, this lib is solving two of my main concerns, query depth, and complexity in one go. So I would love to also see if we could add a section in the docs for NestJS integration since NestJS is pretty much a very solid choice for many devs out there to kickstart their Backend project.
Any comment?
Oh, BTW here is the app I wrote in NestJS: https://github.com/kasir-barati/graphql-js-ts/tree/main/apps/complexity. Right now in NestJS's docs you can see that we're suggesting devs to use
graphql-query-complexity
. So I am also hoping to change that if this lib can be fairly straight forward to configure and use: https://docs.nestjs.com/graphql/complexity.Beta Was this translation helpful? Give feedback.
All reactions