Apollo-ios: Apollo does not support anonymous operations

Created on 21 Nov 2019  路  2Comments  路  Source: apollographql/apollo-ios

Hello,

I'm trying to integrate Apollo with my iOS application. While following the steps from the doc I faced one issue in run script section and that is: Apollo does not support anonymous operations. I also looked around the same issue on this repo but I can't able to solve my problem.

apollo error

Here are my project structure and run script,

project stucture and run script

_userRegistration.graphql_ contain,

graphql file

Any help would be appreciated!

Most helpful comment

Hi!

You need to add a query like this

mutation UserRegistration {
/// You query
}

Thus, a name for the query after the mutation or query

All 2 comments

Hi!

You need to add a query like this

mutation UserRegistration {
/// You query
}

Thus, a name for the query after the mutation or query

Thank you @kimdv! It works. 馃挴

Was this page helpful?
0 / 5 - 0 ratings