Closed ZedZipDev closed 3 years ago
@Oleg26Dev
In question number 1, if you are seeing that error Either the parameter query or the parameter id has to be set.
, I can only assume that is in the browser window (since you didn't submit any screenshot or context). That means that you are using that endpoint incorrectly.
/api/graphql
endpoint is the query engine and is not a valid web uri. It's telling you that you have not provided the parameter named query
which is required in order to execute it. To view the Schema and/or run a query you should use a GraphQL IDE... HotChocolate provides a built in IDE named "Banana Cake Pop" that is available on the endpoint /api/graphql/playground
.
Finally, per your question about the Schema, it's not clear if you were looking to browse it via the IDE (as shown above in number 2 above) or download the raw schema definition, which is also supported via HotChocolates query string param ?sdl
(a documented feature of HC):
Thank you, I see, the matter is the Banana Cake Pop IDE substituted the same link to its Page Tab too, i.e. /api/graphql/playground But the 2nd one should be /api/graphql/ Now I see the schema.
I have built and run StarWars-AzureFunctions-RepoDB server , then run
http://localhost:7071/api/graphql {"errors":[{"message":"Either the parameter query or the parameter id has to be set.","extensions":{"code":"HC0013"}}]}
http://localhost:7071/api/graphql/playground/ No any schema. How to view the schema and run a query?