Apollo-android: Unsupported token `immediately`

Created on 24 Mar 2021  路  3Comments  路  Source: apollographql/apollo-android

Summary
Sorry, I'm still new to GraphQL. I have this part of the GraphQL request,

                    asset {
                        id
                        url @transform (width: 1500, immediately: true)
                    }

but it never runs because it throws the error Unsupported token immediately. I think this is a valid GraphQL and the iOS version seems to be ok.

Version
apollo-runtime:2.3.1

Bug

All 3 comments

Can you try moving the directive after the arguments?

                    asset {
                        id
                        url(width: 1500, immediately: true) @transform
                    }

thank you very much. moving the directive works.

you can close this if this is not actually a bug.

Nice, thanks for the follow up 馃憤 !

Was this page helpful?
0 / 5 - 0 ratings