Friday, March 22, 2024
HomeiOS Developmentswift - Find out how to deal with a number of api...

swift – Find out how to deal with a number of api endpoints for apollo iOS


The shopper has 2 api endpoints. Endpoints is for getting a token which endpoints use to authenticate earlier than fetching data.

Following the instruction on Apollo I’ve managed to create the API package deal for the primary endpoints which I succeed to implement getting the token. Nonetheless, I’m at a loss how one can combine the second endpoints schema into the present initiatives.
https://www.apollographql.com/docs/ios/tutorial/tutorial-add-graphql-schema
The tutorial above present how one can create apollo-codegen-config.json to fetch the schema then run
./apollo-ios-cli generate to generate a package deal. Nonetheless, If I’ve 2 schema when I attempt to run the generate command it could give the error

GraphQLSchemaValidationError-There may be just one directive named "@apollo_client_ios_localCacheMutation".

There may be just one directive named "@import".

There may be just one kind named "Question".-GraphQLSchemaValidationError@
@
@



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments