SaraVieira / awesome-talks

Awesome Talks Curated By the Community
MIT License
810 stars 61 forks source link

[Question] Why does Importing Mutation in Resolver doesn't work but Copy-Pasting it works? #110

Closed deadcoder0904 closed 2 years ago

deadcoder0904 commented 6 years ago

Hey Sara, thank you for this project. I have learned everything about Apollo from you & apollo-link-state from this project πŸ™Œ

But I have a question. Why does this work❓ πŸ˜ƒ

https://github.com/SaraVieira/awesome-talks/blob/83174baf8d5e7c5d5731673b05aa5b6ebe973bfe/src/Utils/stateLink.js#L28-L32

And if I do this, it doesn't work 😞

import { GET_MODE } from "../Queries/Local/SWITCH_MODE";

const query = GET_MODE;