Hi, Im running through the Apollo <tutorial> and h...
# apollo-kotlin
t
Hi, Im running through the Apollo tutorial and having trouble generating the subscrition data model
My quiries and mutations are all being generated, however no matter what I try I cannot seem to generate the model associated with
Copy code
subscription TripsBooked {
  tripsBooked
}
e.g. I do not see
TripsBookedSubscription()
is there a configuration setting Im missing? Wheer have I made my mistake?
m
That looks about right. Double check the file extension?
t
this is what I have
m
looks good...
In these cases, I try writing garbage in the file to check if an error is triggered
You can also try with --rerun-tasks. Maybe there's some weird Gradle issue...
t
Failed to parse GraphQL file /Users/......k/TripsBooked.graphql (1:20)
`Unsupported token `asjkdchbv``
----------------------------------------------------
[1]:lzdkjfhv lkdasjkldb asjkdchbv aksjhcbv akjshcbv ljscb
----------------------------------------------------
so it can see my file 😄
m
Alright, that's good I guess
t
thats odd... now I restored my file its working 😉
you are THE MAN!!!! 😎
🙌 1
m
Ahah that's the magic!
Might be an issue with Gradle build cache or something similar. Feel free to file an issue if you can reproduce
t
🧙‍♂️
do I need to have a CR/LF at the end of
.graphql
files?
I should have tried the trusted "Inavlidate cache & restart" first 🤦‍♂️
m
do I need to have a CR/LF at the end of 
.graphql
 files?
I don't think so? Unless you're on Windows maybe...
But I don't think this matters
t
Im using a macBook Catalina
I'll see if I can recreate, thanks again for your help 😄
👍 1