I've been trying to use Apollo GraphQL with Android, following the steps here.
I've managed to get to the point where the necessary files get auto-generated but after that is where I'm stuck. When I try to use the query I get a "Cannot resolve symbol" error. Is there a way I can access my query?
I've tried the suggestion here: Apollo Android Client - Cannot access generated classes on classpath But the class files don't get auto-generated, also even if I import the project directory I still can't access the query.
Here's the code for my query:
query ReadUser($username: String!) {
readuser(username: $username) {
username
email
}
}
I've tried calling ReadUser, ReadUserQuery, readuser; nothing.