Graphql Code Generator #5337
-
Hello everyone! Quick question. I have been working on a Blazor WASM project and got the idea that I should try React/Asp.net and was thinking about the Graphql Code Generator I used a while back in a Next.JS project to get the types. Is it even possible to have a ASP.net backend server with hot chocolate and use the Graphql Code Generator to get the type for a React frontend? I tried it real quick and ended up getting "Failed to load schema from "https://localhost:7181/graphql/"". Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
We've used the same library on a recent project and it works. FIrst thing that comes to mind is the ssl cerificate. Make sure that's disabled during the code gen. We use cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 on the generate step in our package.json for example. |
Beta Was this translation helpful? Give feedback.
We've used the same library on a recent project and it works. FIrst thing that comes to mind is the ssl cerificate. Make sure that's disabled during the code gen. We use cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 on the generate step in our package.json for example.