xamarin / Xamarin.Forms.GraphQL

Other
41 stars 9 forks source link

Getting Started Sample not firing GraphQL request #2

Open michael-watson opened 6 years ago

michael-watson commented 6 years ago

First I want to say 👏👏👏👏👏 !!!! This is amazing and I can't wait to start helping out with this project.

For the getting started sample, I was unable to run either the code in the image or for the List in the specific section. I tried debugging into it further and found that the GraphQLClient instance was never being created when I was setting the top level BindingContext.

Instead of having the BindingContext on the ContentPage, I created a ViewModel that inherited from GraphQLObject, set the endpoint and everything worked as expected.

davidortinau commented 6 years ago

@StephaneDelcroix when I disabled xamlc I can see my endpoint value populate, but otherwise the value is never set and thus the query never executed.