Graphql v1/v2 endpoints #2470
Replies: 1 comment 3 replies
-
Ok it’s clearly a bug. Can open issue please? |
Beta Was this translation helpful? Give feedback.
3 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Hi, I'm new in Ts.ED and I'm exploring this library. I was playing with GraphQL and I wanted to create two endpoints
/v1/graphql
and/v2/graphql
. I don't need it currently, I'm just goofing around, but it doesn't work.I forked template repo and created https://github.com/radoslavirha/tsed-example-graphql as an example.
My first question is if everything is set correctly? I think yes, but still.
I expect query
sent to
http://0.0.0.0:8083/v1/graphql
should return id 1 andhttp://0.0.0.0:8083/v2/graphql
should return id 2.It seems import order is important here
Both endpoints returns result from first imported module, even when they are separated, have separate path and resolvers.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions