dart-graphql / graphql_client

GraphQL Client.
https://pub.dartlang.org/packages/graphql_client
MIT License
78 stars 9 forks source link

Error when trying your sample BioQuery... #13

Closed billylo1 closed 6 years ago

billylo1 commented 6 years ago

I am new to Dart... any hints on why? thx. Billy.

On this line: The IDE gives me a warning of Invalid Override. OperationType get type => OperationType.query;

At runtime: malformed type: line 93 pos 3: cannot resolve class 'OperationType' from 'ViewerBioQuery' OperationType get type => OperationType.query; ^

hourliert commented 6 years ago

Hi @billylo1,

Thanks for your interest in this project. I have cloned the project from scratch and tester the example in the master branch and everything works out of the box for me. I have installed dart using brew by following this guide: https://www.dartlang.org/install/mac.

To make the project works, you have to define a environnement variable GITHUBQL_TOKEN=YOUR_PERSONAL_GITHUB_TOKEN_WITH_THE_GQL_RIGHT. The official documentation is here.

Let me know if you still have an issue. Otherwise, I will close this issue in one week.

Cheers!

billylo1 commented 6 years ago

Perfect. Thx!!