Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quickstart-react issues #12

Open
anderslyman opened this issue Jul 14, 2020 · 1 comment
Open

quickstart-react issues #12

anderslyman opened this issue Jul 14, 2020 · 1 comment

Comments

@anderslyman
Copy link

Re: https://monday.com/developers/apps/quickstart-view

I was just walking through the tutorial and wanted to point out a couple of things I ran into...

  1. App.js and AppSolution.js appear to be swapped - App.js is one that gets loaded, but AppSolution.js is the one that matches the tutorial.
  2. There is a graphql query error that occurs with this api call:
monday.api(`query { me { name } }`).then((res) => {
  this.setState({ name: res.data.me.name });
});

Error:

main-8c40824b532720c6a028.js:1 Error: Graphql validation errors

In the playground, that query works great, so I'm not sure what the issue is.

@anderslyman
Copy link
Author

A note for posterity.

  • I was missing the me:read scope
  • The error callback in the api promise doesn't actually trigger, you'll have to check the Network tab to see error details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant