Last time I was consuming GraphQL I ended up using a JSON string parameter using the standard HTTP Client, this is SOOO much easier! Thank you for sharing this!
One thing that isn't quite obvious is that even though the response is dynamic, which is dependent on the query parameters, the model that is deserialized and mapped to the response isn't; it's based on a static response schema. So if you modify the query structure (removing or adding additional parameters), make sure your response model can handle the modified response.
How can I do so that in the "schema" more than one type of "query" can be used if it only has one attribute to hold this "query" or how can it be done so that several types of objects can be consulted without the class "query" is so coupled
@@robertrhythm69 - Video is from 4 months ago. I tried: GraphQL: 2.4 (from 18 months ago), also tried 3.0.0-preview-1490 from six months ago. GraphQLClient 3.1.4, 3.1.0 and 3.0.1 (from 5 months ago)
Last time I was consuming GraphQL I ended up using a JSON string parameter using the standard HTTP Client, this is SOOO much easier! Thank you for sharing this!
5:58 You can keep the line breaks by prefacing the string with @ e.g. @"test
test"
This is cool, but I wish they would create a graphql code generator like they have for open API implementations
One thing that isn't quite obvious is that even though the response is dynamic, which is dependent on the query parameters, the model that is deserialized and mapped to the response isn't; it's based on a static response schema. So if you modify the query structure (removing or adding additional parameters), make sure your response model can handle the modified response.
Exactly what I was looking for, thanks!
For the query string wouldn't it be easier to just prefix with @ ?
Doesn't seem to work, not sure why
How can I do so that in the "schema" more than one type of "query" can be used if it only has one attribute to hold this "query" or how can it be done so that several types of objects can be consulted without the class "query" is so coupled
Great demo thank you
How about authorization? should I use the standard http for that ?
Great series!
thanks for all the serie!
Can you share the repository's code?
hi, is it possible to consume with Graph.net Client with a Graph API created with Apollo Server?
Yes, need to send the query as shown in the video and the endpoint will be an Apolli Server
What happened to the GetDataFieldAs?
Add what version of the GraphQL.Client are you using?
@@robertrhythm69 - Video is from 4 months ago. I tried:
GraphQL: 2.4 (from 18 months ago), also tried 3.0.0-preview-1490 from six months ago.
GraphQLClient 3.1.4, 3.1.0 and 3.0.1 (from 5 months ago)
That guy is using mac book in microsoft channel🤣🤣🤣
GraphQLRequest Query string is awfull, ppl pls use wcf instead
Have you ever seen a WCF request? Those things are massive!
@@joro550 you can override any level of transport protocol or use a prepared pattern
@@МаксимЧистяков-ч7ц you can also write the data manually