I'm new to Android studio and want to write a small example app with GraphQL and the Apollo Client.
I've successfully setup my build environment and the automated code generation. Here's a screenshot of the file structure, build/generated/apollo/AllPostsQuery
is the class that was autogenerated based on src/main/graphql/AllPosts.graphql
:
My only issue now is that I don't know how to import the AllPostsQuery
class into my MainActivy
.
I simply tried:
import AllPostsQuery;
but that doesn't work:
Can not resolve symbol
AllPostsQuery
.
Do I need to add any prefixes to the import path?